Skip to content

Commit ee5c6b8

Browse files
committed
Fix command-line arguments
1 parent 70c3686 commit ee5c6b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

openudm/UFGFabricFromCoverage.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def ufg_fabric_from_coverage_entrypoint():
2222
try:
2323
# e.g. i = input file (colon indicates input expected)
2424
#opts, args = getopt.getopt(args, "i:t:", ["input_data_path=", 'tile_data_path='])
25-
opts, args = getopt.getopt(args, "ib:it:of:tp:", ["input_build_ras=", "input_tile_ras=", "output_fabric_ras=", 'tile_data_path='])
25+
opts, args = getopt.getopt(args, "b:t:f:p:", ["input_build_ras=", "input_tile_ras=", "output_fabric_ras=", 'tile_data_path='])
2626
except getopt.GetoptError as err:
2727
print(err)
2828
sys.exit(2)
@@ -36,13 +36,13 @@ def ufg_fabric_from_coverage_entrypoint():
3636
# check each passed argument and assign values to variables
3737
for opt, arg in opts:
3838
print(opt)
39-
if opt in ("-ib", "input_build_ras="):
39+
if opt in ("-b", "input_build_ras="):
4040
input_build_ras = arg
41-
elif opt in ("-it", 'input_tile_ras='):
41+
elif opt in ("-t", 'input_tile_ras='):
4242
input_tile_ras = arg
43-
elif opt in ("-of", 'output_fabric_ras='):
43+
elif opt in ("-f", 'output_fabric_ras='):
4444
output_fabric_ras = arg
45-
elif opt in ("-tp", 'tile_data_path='):
45+
elif opt in ("-p", 'tile_data_path='):
4646
tile_data_path = arg
4747
else:
4848
print('Un-recognised argument %s' %opt)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def readme():
7979

8080
setup(
8181
name='openudm',
82-
version='5.0.6',
82+
version='5.0.7',
8383
author='James Virgo',
8484
description='Urban Development Model',
8585
long_description=readme(),

0 commit comments

Comments
 (0)