@@ -20,35 +20,36 @@ def main():
20
20
# Read command-line arguments
21
21
parser = argparse .ArgumentParser (
22
22
description = "Code Base Investigator " + str (version ),
23
+ formatter_class = argparse .RawTextHelpFormatter ,
23
24
add_help = False ,
24
25
)
25
26
parser .add_argument (
26
27
"-h" ,
27
28
"--help" ,
28
29
action = "help" ,
29
- help = "Display help message and exit." ,
30
+ help = "\n Display help message and exit.\n " ,
30
31
)
31
32
parser .add_argument (
32
33
"--version" ,
33
34
action = "version" ,
34
35
version = f"Code Base Investigator { version } " ,
35
- help = "Display version information and exit." ,
36
+ help = "\n Display version information and exit.\n " ,
36
37
)
37
38
parser .add_argument (
38
39
"-v" ,
39
40
"--verbose" ,
40
41
dest = "verbose" ,
41
42
action = "count" ,
42
43
default = 0 ,
43
- help = "Increase verbosity level." ,
44
+ help = "\n Increase verbosity level.\n " ,
44
45
)
45
46
parser .add_argument (
46
47
"-q" ,
47
48
"--quiet" ,
48
49
dest = "quiet" ,
49
50
action = "count" ,
50
51
default = 0 ,
51
- help = "Decrease verbosity level." ,
52
+ help = "\n Decrease verbosity level.\n " ,
52
53
)
53
54
parser .add_argument (
54
55
"-R" ,
@@ -58,9 +59,9 @@ def main():
58
59
action = "append" ,
59
60
default = [],
60
61
choices = ["all" , "summary" , "clustering" ],
61
- help = "Generate a report of the specified type. "
62
- + "May be specified multiple times. "
63
- + "If not specified, all reports will be generated." ,
62
+ help = "Generate a report of the specified type.\n "
63
+ + "May be specified multiple times.\n "
64
+ + "If not specified, all reports will be generated.\n " ,
64
65
)
65
66
parser .add_argument (
66
67
"-x" ,
@@ -69,8 +70,8 @@ def main():
69
70
metavar = "<pattern>" ,
70
71
action = "append" ,
71
72
default = [],
72
- help = "Exclude files matching this pattern from the code base. "
73
- + "May be specified multiple times." ,
73
+ help = "Exclude files matching this pattern from the code base.\n "
74
+ + "May be specified multiple times.\n " ,
74
75
)
75
76
parser .add_argument (
76
77
"-p" ,
@@ -79,14 +80,14 @@ def main():
79
80
metavar = "<platform>" ,
80
81
action = "append" ,
81
82
default = [],
82
- help = "Include the specified platform in the analysis. "
83
- + "May be specified multiple times. "
84
- + "If not specified, all platforms will be included." ,
83
+ help = "Include the specified platform in the analysis.\n "
84
+ + "May be specified multiple times.\n "
85
+ + "If not specified, all platforms will be included.\n " ,
85
86
)
86
87
parser .add_argument (
87
88
"analysis_file" ,
88
89
metavar = "<analysis-file>" ,
89
- help = "TOML file describing the analysis to be performed, "
90
+ help = "\n TOML file describing the analysis to be performed, "
90
91
+ "including the codebase and platform descriptions." ,
91
92
)
92
93
0 commit comments