File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,12 @@ def main():
86
86
"--report" ,
87
87
dest = "reports" ,
88
88
metavar = "<report>" ,
89
- default = ["all" ],
89
+ action = "append" ,
90
+ default = [],
90
91
choices = ["all" , "summary" , "clustering" ],
91
- nargs = "+" ,
92
- help = "Generate a report of the specified type." ,
92
+ help = "Generate a report of the specified type. "
93
+ + "May be specified multiple times. "
94
+ + "If not specified, all reports will be generated." ,
93
95
)
94
96
deprecated_args .add_argument (
95
97
"-d" ,
@@ -144,11 +146,11 @@ def main():
144
146
"--dump will be removed in a future release." ,
145
147
DeprecationWarning ,
146
148
)
147
- if len ( args . reports ) > 1 :
148
- warnings . warn (
149
- "Passing more than one value to --report (-R) is deprecated." ,
150
- DeprecationWarning ,
151
- )
149
+
150
+ # If no specific report was specified, generate all reports.
151
+ # Handled here to prevent "all" always being in the list.
152
+ if len ( args . reports ) == 0 :
153
+ args . reports = [ "all" ]
152
154
153
155
# Determine the root directory based on where codebasin is run.
154
156
rootdir = os .path .realpath (os .getcwd ())
You can’t perform that action at this time.
0 commit comments