parse arguments and return the argument object back to main
()
| 12 | |
| 13 | |
| 14 | def 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 | |
| 27 | def run_meson(args): |