Skip to content

Commit

Permalink
Improve help message for the --quiet-level option
Browse files Browse the repository at this point in the history
  • Loading branch information
waldyrious committed Mar 11, 2020
1 parent a452368 commit 3099ed6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,16 @@ def parse_options(args):

parser.add_argument('-q', '--quiet-level',
action='store', type=int, default=2,
help='Bitmask that allows codespell to run quietly. '
help='Bitmask that allows suppressing some messages. '
'0: print all messages. 1: disable warnings about '
'wrong encoding. 2: disable warnings about binary '
'file. 4: shut down warnings about automatic '
'fixes that were disabled in dictionary. '
'8: don\'t print anything for non-automatic '
'fixes. 16: don\'t print fixed files.')
'files (this is the default level). 4: omit '
'warnings about automatic fixes that were '
'disabled in dictionary. 8: don\'t print anything '
'for non-automatic fixes. 16: don\'t print the '
'list of fixed files. As usual with bitmaps, these'
' levels can be combined; e.g. use 3 to mean 1+2, '
'7 for 1+2+4, 23 for 1+2+4+16 etc.')

parser.add_argument('-e', '--hard-encoding-detection',
action='store_true', default=False,
Expand Down

0 comments on commit 3099ed6

Please sign in to comment.