MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / parse_args

Function parse_args

segmentation/tools/print_config.py:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def 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
21def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected