()
| 177 | return cfg.clone() |
| 178 | |
| 179 | def parse_args(): |
| 180 | parser = argparse.ArgumentParser() |
| 181 | parser.add_argument('--cfg', type=str, help='cfg file path') |
| 182 | |
| 183 | args = parser.parse_args() |
| 184 | cfg = get_cfg_defaults() |
| 185 | if args.cfg is not None: |
| 186 | cfg_file = args.cfg |
| 187 | cfg = update_cfg(cfg, args.cfg) |
| 188 | cfg.cfg_file = cfg_file |
| 189 | return cfg |
nothing calls this directly
no test coverage detected