Merge pull request #515 from darko-poljak/better-verbosity-description

Better describe -v option
This commit is contained in:
Darko Poljak 2017-01-28 17:04:46 +01:00 committed by GitHub
commit 67cc6a839b
2 changed files with 9 additions and 6 deletions

View File

@ -85,9 +85,11 @@ def get_parsers():
action='store_true', default=False)
parser['loglevel'].add_argument(
'-v', '--verbose',
help=('Increase log level, be more verbose. Use it more than once '
'to increase log level. The order of levels from the lowest '
'to the highest are: ERROR, WARNING, INFO, DEBUG.'),
help=('Increase the verbosity level. Every instance of -v '
'increments the verbosity level by one. Its default value is '
'0. There are 4 levels of verbosity. The order of levels '
'from the lowest to the highest are: ERROR (0), WARNING (1), '
'INFO (2) and DEBUG (3 or higher).'),
action='count', default=0)
parser['beta'] = argparse.ArgumentParser(add_help=False)

View File

@ -50,9 +50,10 @@ All commands accept the following options:
.. option:: -v, --verbose
Increase log level, be more verbose. Use it more than once to increase
log level. The order of levels from the lowest to the highest are:
ERROR, WARNING, INFO, DEBUG.
Increase the verbosity level. Every instance of -v increments the verbosity
level by one. Its default value is 0. There are 4 levels of verbosity. The
order of levels from the lowest to the highest are: ERROR (0), WARNING (1),
INFO (2) and DEBUG (3 or higher).
.. option:: -V, --version