From b81950741560acf12bd4258c61777cf6f6dd28b9 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Wed, 30 Nov 2016 23:25:31 +0100 Subject: [PATCH] Better document -v option. --- docs/src/man1/cdist.rst | 5 +++-- scripts/cdist | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/src/man1/cdist.rst b/docs/src/man1/cdist.rst index 08c49446..4907da55 100644 --- a/docs/src/man1/cdist.rst +++ b/docs/src/man1/cdist.rst @@ -50,8 +50,9 @@ All commands accept the following options: .. option:: -v, --verbose - Increase log level, be more verbose. The order of levels from lowest to - greatest are: ERROR, WARNING, INFO, DEBUG. + Increase log level, be more verbose. Use it more than onceto increase + log level. The order of levels from the lowest to the greatest are: + ERROR, WARNING, INFO, DEBUG. .. option:: -V, --version diff --git a/scripts/cdist b/scripts/cdist index 22acb033..7e755f4c 100755 --- a/scripts/cdist +++ b/scripts/cdist @@ -94,8 +94,9 @@ def commandline(): action='store_true', default=False) parser['loglevel'].add_argument( '-v', '--verbose', - help=('Increase log level, be more verbose. The order of levels ' - 'from lowest to greatest are: ERROR, WARNING, INFO, DEBUG.'), + 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 greatest are: ERROR, WARNING, INFO, DEBUG.'), action='count', default=0) # Main subcommand parser