MCPcopy Create free account
hub / github.com/Pixel-Talk/EHM-Tracker / parse_args

Function parse_args

src/modules/pixie/utils/config.py:179–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 return cfg.clone()
178
179def 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

Callers

nothing calls this directly

Calls 2

get_cfg_defaultsFunction · 0.85
update_cfgFunction · 0.85

Tested by

no test coverage detected