forked from ungleich-public/cdist
Merge pull request #515 from darko-poljak/better-verbosity-description
Better describe -v option
This commit is contained in:
commit
67cc6a839b
2 changed files with 9 additions and 6 deletions
|
@ -85,9 +85,11 @@ def get_parsers():
|
||||||
action='store_true', default=False)
|
action='store_true', default=False)
|
||||||
parser['loglevel'].add_argument(
|
parser['loglevel'].add_argument(
|
||||||
'-v', '--verbose',
|
'-v', '--verbose',
|
||||||
help=('Increase log level, be more verbose. Use it more than once '
|
help=('Increase the verbosity level. Every instance of -v '
|
||||||
'to increase log level. The order of levels from the lowest '
|
'increments the verbosity level by one. Its default value is '
|
||||||
'to the highest are: ERROR, WARNING, INFO, DEBUG.'),
|
'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)
|
action='count', default=0)
|
||||||
|
|
||||||
parser['beta'] = argparse.ArgumentParser(add_help=False)
|
parser['beta'] = argparse.ArgumentParser(add_help=False)
|
||||||
|
|
|
@ -50,9 +50,10 @@ All commands accept the following options:
|
||||||
|
|
||||||
.. option:: -v, --verbose
|
.. option:: -v, --verbose
|
||||||
|
|
||||||
Increase log level, be more verbose. Use it more than once to increase
|
Increase the verbosity level. Every instance of -v increments the verbosity
|
||||||
log level. The order of levels from the lowest to the highest are:
|
level by one. Its default value is 0. There are 4 levels of verbosity. The
|
||||||
ERROR, WARNING, INFO, DEBUG.
|
order of levels from the lowest to the highest are: ERROR (0), WARNING (1),
|
||||||
|
INFO (2) and DEBUG (3 or higher).
|
||||||
|
|
||||||
.. option:: -V, --version
|
.. option:: -V, --version
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue