Skip to content

Commit e853423

Browse files
authored
Merge pull request #68 from Pennycook/argparse-option-groups
Separate deprecated options in -h output
2 parents b86226c + e78f5b1 commit e853423

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/codebasin

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def main():
4343
parser = argparse.ArgumentParser(
4444
description="Code Base Investigator v" + str(version),
4545
)
46-
parser.add_argument(
46+
deprecated_args = parser.add_argument_group("deprecated options")
47+
deprecated_args.add_argument(
4748
"-r",
4849
"--rootdir",
4950
dest="rootdir",
@@ -60,7 +61,7 @@ def main():
6061
help="Set path to source directory. "
6162
+ "The default is the current directory.",
6263
)
63-
parser.add_argument(
64+
deprecated_args.add_argument(
6465
"-c",
6566
"--config",
6667
dest="config_file",
@@ -94,15 +95,15 @@ def main():
9495
nargs="+",
9596
help="desired output reports (default: all)",
9697
)
97-
parser.add_argument(
98+
deprecated_args.add_argument(
9899
"-d",
99100
"--dump",
100101
dest="dump",
101102
metavar="<file.json>",
102103
action="store",
103104
help="dump out annotated platform/parsing tree to <file.json>",
104105
)
105-
parser.add_argument(
106+
deprecated_args.add_argument(
106107
"--batchmode",
107108
dest="batchmode",
108109
action="store_true",

0 commit comments

Comments
 (0)