()
| 72 | |
| 73 | |
| 74 | def 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 | |
| 89 | def main(): |