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 Jun 10, 2020
1 parent 9be3d27 commit d8e9d07
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,19 @@ def parse_options(args):

parser.add_argument('-q', '--quiet-level',
action='store', type=int, default=2,
help='Bitmask that allows codespell to run quietly. '
'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. '
help='Bitmask that allows suppressing 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 the dictionary. '
'8: don\'t print anything for non-automatic '
'fixes. 16: don\'t print fixed files.')
'fixes. '
'16: don\'t print the list of fixed files. '
'As usual with bitmasks, these levels can be '
'combined; e.g. use 3 for levels 1+2, 7 for '
'1+2+4, 23 for 1+2+4+16, etc. '
'The default mask is %(default)s.')

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

0 comments on commit d8e9d07

Please sign in to comment.