Skip to content

Commit

Permalink
Only print config files with --debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
skangas committed Nov 23, 2022
1 parent 58c8170 commit b7b3467
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,10 +1001,11 @@ def main(*args: str) -> int:
options, parser, used_cfg_files = parse_options(args)

# Report used config files
if len(used_cfg_files) > 0:
print("Used config files:")
for ifile, cfg_file in enumerate(used_cfg_files, start=1):
print(" %i: %s" % (ifile, cfg_file))
if options.debug:
if len(used_cfg_files) > 0:
print("Used config files:")
for ifile, cfg_file in enumerate(used_cfg_files, start=1):
print(" %i: %s" % (ifile, cfg_file))

if options.regex and options.write_changes:
print(
Expand Down

0 comments on commit b7b3467

Please sign in to comment.