Skip to content

Commit

Permalink
Merge pull request #68 from Pennycook/argparse-option-groups
Browse files Browse the repository at this point in the history
Separate deprecated options in -h output
  • Loading branch information
Pennycook authored Mar 1, 2024
2 parents b86226c + e78f5b1 commit e853423
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/codebasin
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def main():
parser = argparse.ArgumentParser(
description="Code Base Investigator v" + str(version),
)
parser.add_argument(
deprecated_args = parser.add_argument_group("deprecated options")
deprecated_args.add_argument(
"-r",
"--rootdir",
dest="rootdir",
Expand All @@ -60,7 +61,7 @@ def main():
help="Set path to source directory. "
+ "The default is the current directory.",
)
parser.add_argument(
deprecated_args.add_argument(
"-c",
"--config",
dest="config_file",
Expand Down Expand Up @@ -94,15 +95,15 @@ def main():
nargs="+",
help="desired output reports (default: all)",
)
parser.add_argument(
deprecated_args.add_argument(
"-d",
"--dump",
dest="dump",
metavar="<file.json>",
action="store",
help="dump out annotated platform/parsing tree to <file.json>",
)
parser.add_argument(
deprecated_args.add_argument(
"--batchmode",
dest="batchmode",
action="store_true",
Expand Down

0 comments on commit e853423

Please sign in to comment.