()
| 50 | return cfg.clone() |
| 51 | |
| 52 | def parse_args(): |
| 53 | parser = argparse.ArgumentParser() |
| 54 | parser.add_argument('--cfg', type=str, help='cfg file path') |
| 55 | |
| 56 | args = parser.parse_args() |
| 57 | print(args, end='\n\n') |
| 58 | |
| 59 | cfg = get_cfg_defaults() |
| 60 | if args.cfg is not None: |
| 61 | cfg_file = args.cfg |
| 62 | cfg = update_cfg(cfg, args.cfg) |
| 63 | cfg.cfg_file = cfg_file |
| 64 | |
| 65 | return cfg |
nothing calls this directly
no test coverage detected