@@ -365,7 +365,6 @@ def output_results(args, bad_words):
365365 if args .vim :
366366 print (f"vim +{ line_num } { found_file } " , file = sys .stderr )
367367 else :
368-
369368 print (
370369 f"file: { found_file :30} line: { line_num :3d} word: { misspelled_word } " ,
371370 file = sys .stderr ,
@@ -423,13 +422,15 @@ def comment_spell_check(args):
423422 if args .bibtex :
424423 add_bibtex_words (spell , args .bibtex )
425424
426- for bibtex_file in bibtex_files :
427- logger .info ("Loading bibtex file: %s" , bibtex_file )
428- bibtex_loader .add_bibtex (spell , bibtex_file )
425+ file_list = []
426+ if len (args .filenames ):
427+ file_list = args .filenames
428+ else :
429+ file_list = ["." ]
429430
431+ prefixes = ["sitk" , "itk" , "vtk" ] + args .prefixes
430432
431- def output_results (args , bad_words ):
432- """Output the results of the spell check."""
433+ bad_words = []
433434
434435 suffixes = [* set (args .suffix )] # remove duplicates
435436
@@ -494,9 +495,8 @@ def output_results(args, bad_words):
494495
495496def main ():
496497 parser = parseargs .create_parser ()
497- args = parseargs .parse_args (parser )
498+ args = parseargs .parse_args ()
498499 comment_spell_check (args )
499500
500-
501501if __name__ == "__main__" :
502502 main ()
0 commit comments