Commit 8fcfa59b authored by Veronika Kabatova's avatar Veronika Kabatova Committed by Pavel Emelyanov

Add long option for verbosity changes

Only long options are supported in configuration files. "-v" is the only
short option which doesn't have a corresponding long option, therefore
users wouldn't be able to setup verbosity in configuration files without
this patch.
Signed-off-by: 's avatarVeronika Kabatova <vkabatov@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent adc47efd
......@@ -32,11 +32,12 @@ Common options
~~~~~~~~~~~~~~
Common options are applicable to any 'command'.
*-v*[*v*...]::
*-v*[*v*...], *--verbosity*::
Increase verbosity up from the default level. Multiple *v* can be used,
each increasing verbosity by one level.
each increasing verbosity by one level. Using long option without argument
increases verbosity by one level.
*-v*'num'::
*-v*'num', *--verbosity*='num'::
Set verbosity level to 'num'. The higher the level, the more output
is produced.
+
......
......@@ -291,6 +291,7 @@ int main(int argc, char *argv[], char *envp[])
BOOL_OPT("weak-sysctls", &opts.weak_sysctls),
{ "status-fd", required_argument, 0, 1088 },
{ SK_CLOSE_PARAM, no_argument, 0, 1089 },
{ "verbosity", optional_argument, 0, 'v' },
{ },
};
......@@ -896,8 +897,8 @@ usage:
"* Logging:\n"
" -o|--log-file FILE log file name\n"
" --log-pid enable per-process logging to separate FILE.pid files\n"
" -v[v...] increase verbosity (can use multiple v)\n"
" -vNUM set verbosity to NUM (higher level means more output):\n"
" -v[v...]|--verbosity increase verbosity (can use multiple v)\n"
" -vNUM|--verbosity=NUM set verbosity to NUM (higher level means more output):\n"
" -v1 - only errors and messages\n"
" -v2 - also warnings (default level)\n"
" -v3 - also information messages and timestamps\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment