()
| 7 | |
| 8 | |
| 9 | def parse_args(): |
| 10 | parser = argparse.ArgumentParser(description='Print the whole config') |
| 11 | parser.add_argument('config', help='config file path') |
| 12 | parser.add_argument( |
| 13 | '--graph', action='store_true', help='print the models graph') |
| 14 | parser.add_argument( |
| 15 | '--options', nargs='+', action=DictAction, help='arguments in dict') |
| 16 | args = parser.parse_args() |
| 17 | |
| 18 | return args |
| 19 | |
| 20 | |
| 21 | def main(): |