|
try: |
|
if len(sys.argv) > 4: |
|
print ('Warning! Inputs are more than expected, will handel the first 3 inputs and ignore the rest') |
|
dataDIR = sys.argv[1] |
|
start = sys.argv[2] |
|
end = sys.argv[3] |
|
except: |
|
print('Incorrect arguments please make sure to pass <Data source> <From> <To>') |
https://docs.python.org/3/library/argparse.html
Shortest_Path_Graph_Dijkstra/main.py
Lines 5 to 12 in f916007
https://docs.python.org/3/library/argparse.html