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 adf565f commit fa465a6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,17 @@ 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 files. 4: omit warnings about automatic '
'fixes that were disabled in dictionary. '
'8: don\'t print anything for non-automatic '
'fixes. 16: don\'t print fixed files.')
'binary files (this is the default level). 4: '
'omit warnings about automatic fixes that were '
'disabled in the dictionary. 8: don\'t print '
'anything for non-automatic fixes. 16: don\'t '
'print the list of fixed files. As usual with '
'bitmasks, 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 fa465a6

Please sign in to comment.