@@ -151,32 +151,28 @@ def configure_checks(
151151
152152@click .command ()
153153@click .argument ("path" )
154- @click .option ("-m" , "--modules" , help = "Modules to import prior to reading the file(s)." )
155- @click .option ("--no-color" , help = "Disable coloration for console display of output." , is_flag = True )
154+ @click .option ("--modules" , help = "Modules to import prior to reading the file(s)." )
156155@click .option (
157156 "--report-file-path" ,
158157 default = None ,
159158 help = "Save path for the report file." ,
160159 type = click .Path (writable = True ),
161160)
162- @click .option ("-o" , "- -overwrite" , help = "Overwrite an existing report file at the location." , is_flag = True )
161+ @click .option ("--overwrite" , help = "Overwrite an existing report file at the location." , is_flag = True )
163162@click .option ("--levels" , help = "Comma-separated names of InspectorMessage attributes to organize by." )
164163@click .option (
165164 "--reverse" , help = "Comma-separated booleans corresponding to reversing the order for each value of 'levels'."
166165)
167- @click .option ("-i" , "- -ignore" , help = "Comma-separated names of checks to skip." )
168- @click .option ("-s" , "- -select" , help = "Comma-separated names of checks to run." )
166+ @click .option ("--ignore" , help = "Comma-separated names of checks to skip." )
167+ @click .option ("--select" , help = "Comma-separated names of checks to run." )
169168@click .option (
170- "-t" ,
171169 "--threshold" ,
172170 default = "BEST_PRACTICE_SUGGESTION" ,
173171 type = click .Choice (["CRITICAL" , "BEST_PRACTICE_VIOLATION" , "BEST_PRACTICE_SUGGESTION" ]),
174172 help = "Ignores tests with an assigned importance below this threshold." ,
175173)
176- @click .option (
177- "-c" , "--config" , help = "Name of config or path of config .yaml file that overwrites importance of checks."
178- )
179- @click .option ("-j" , "--json-file-path" , help = "Write json output to this location." )
174+ @click .option ("--config" , help = "Name of config or path of config .yaml file that overwrites importance of checks." )
175+ @click .option ("--json-file-path" , help = "Write json output to this location." )
180176@click .option ("--n-jobs" , help = "Number of jobs to use in parallel." , default = 1 )
181177@click .option ("--skip-validate" , help = "Skip the PyNWB validation step." , is_flag = True )
182178@click .option (
@@ -206,7 +202,6 @@ def configure_checks(
206202def inspect_all_cli (
207203 path : str ,
208204 modules : Optional [str ] = None ,
209- no_color : bool = False ,
210205 report_file_path : str = None ,
211206 levels : str = None ,
212207 reverse : Optional [str ] = None ,
@@ -270,12 +265,11 @@ def inspect_all_cli(
270265 json_report = dict (header = get_report_header (), messages = messages )
271266 json .dump (obj = json_report , fp = fp , cls = InspectorOutputJSONEncoder )
272267 print (f"{ os .linesep * 2 } Report saved to { str (Path (json_file_path ).absolute ())} !{ os .linesep } " )
273- if len (messages ):
274- formatted_messages = format_messages (messages = messages , levels = levels , reverse = reverse , detailed = detailed )
275- print_to_console (formatted_messages = formatted_messages , no_color = no_color )
276- if report_file_path is not None :
277- save_report (report_file_path = report_file_path , formatted_messages = formatted_messages , overwrite = overwrite )
278- print (f"{ os .linesep * 2 } Report saved to { str (Path (report_file_path ).absolute ())} !{ os .linesep } " )
268+ formatted_messages = format_messages (messages = messages , levels = levels , reverse = reverse , detailed = detailed )
269+ print_to_console (formatted_messages = formatted_messages )
270+ if report_file_path is not None :
271+ save_report (report_file_path = report_file_path , formatted_messages = formatted_messages , overwrite = overwrite )
272+ print (f"{ os .linesep * 2 } Report saved to { str (Path (report_file_path ).absolute ())} !{ os .linesep } " )
279273
280274
281275def inspect_all (
0 commit comments