MCPcopy Create free account
hub / github.com/comaps/comaps / process_options

Function process_options

tools/python/taxi_csv_to_json.py:74–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74def process_options():
75 parser = ArgumentParser(description='Load taxi file in csv format and convert it into json')
76
77 parser.add_argument("--src", type=str, dest="src", help="Path to csv file", required=True)
78 parser.add_argument("--dst", type=str, dest="dst", help="Path to json file", required=True)
79
80 options = parser.parse_args()
81
82 if not options.src or not options.dst:
83 parser.print_help()
84 return None
85
86 return options
87
88
89def main():

Callers 1

mainFunction · 0.70

Calls 1

parse_argsMethod · 0.45

Tested by

no test coverage detected