mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 02:57:52 +00:00
examples: json-to-csv: fix invocation
The two filenames are actually mandatory, not optional. Reported-by: 张路 <luzhang@bupt.edu.cn> Change-Id: I4e40748430a602a2c06eb35c96e0a8267519b8b3
This commit is contained in:
@@ -19,8 +19,8 @@ from gnpy.topology.request import jsontocsv
|
|||||||
|
|
||||||
|
|
||||||
parser = ArgumentParser(description='Converting JSON path results into a CSV')
|
parser = ArgumentParser(description='Converting JSON path results into a CSV')
|
||||||
parser.add_argument('filename', nargs='?', type=Path)
|
parser.add_argument('filename', type=Path)
|
||||||
parser.add_argument('output_filename', nargs='?', type=Path)
|
parser.add_argument('output_filename', type=Path)
|
||||||
parser.add_argument('eqpt_filename', nargs='?', type=Path, default=Path(__file__).parent / 'eqpt_config.json')
|
parser.add_argument('eqpt_filename', nargs='?', type=Path, default=Path(__file__).parent / 'eqpt_config.json')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user