MCPcopy Create free account
hub / github.com/F-Stack/f-stack / args_parse

Function args_parse

dpdk/devtools/process-iwyu.py:14–24  ·  view source on GitHub ↗

parse arguments and return the argument object back to main

()

Source from the content-addressed store, hash-verified

12
13
14def args_parse():
15 "parse arguments and return the argument object back to main"
16 parser = argparse.ArgumentParser(description="This script can be used to remove includes which are not in use\n")
17 parser.add_argument('-b', '--build_dir', type=str, default='build',
18 help="The path to the build directory in which the IWYU tool was used in.")
19 parser.add_argument('-d', '--sub_dir', type=str, default='',
20 help="The sub-directory to remove headers from.")
21 parser.add_argument('file', type=Path,
22 help="The path to the IWYU log file or output from stdin.")
23
24 return parser.parse_args()
25
26
27def run_meson(args):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected