mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 13:00:12 +01:00
cli: display double-dash long options in help
We support all of these: nmcli -v nmcli -version nmcli --version Change the help output to display the first and last versions for options, since they are the most common ones for command line tools.
This commit is contained in:
parent
d76ac490f5
commit
e107d3b593
1 changed files with 13 additions and 13 deletions
|
|
@ -245,19 +245,19 @@ usage (void)
|
|||
g_printerr (_("Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }\n"
|
||||
"\n"
|
||||
"OPTIONS\n"
|
||||
" -a[sk] ask for missing parameters\n"
|
||||
" -c[olors] auto|yes|no whether to use colors in output\n"
|
||||
" -e[scape] yes|no escape columns separators in values\n"
|
||||
" -f[ields] <field1,field2,...>|all|common specify fields to output\n"
|
||||
" -g[et-values] <field1,field2,...>|all|common shortcut for -m tabular -t -f\n"
|
||||
" -h[elp] print this help\n"
|
||||
" -m[ode] tabular|multiline output mode\n"
|
||||
" -o[verview] overview mode (hide default values)\n"
|
||||
" -p[retty] pretty output\n"
|
||||
" -s[how-secrets] allow displaying passwords\n"
|
||||
" -t[erse] terse output\n"
|
||||
" -v[ersion] show program version\n"
|
||||
" -w[ait] <seconds> set timeout waiting for finishing operations\n"
|
||||
" -a, --ask ask for missing parameters\n"
|
||||
" -c, --colors auto|yes|no whether to use colors in output\n"
|
||||
" -e, --escape yes|no escape columns separators in values\n"
|
||||
" -f, --fields <field,...>|all|common specify fields to output\n"
|
||||
" -g, --get-values <field,...>|all|common shortcut for -m tabular -t -f\n"
|
||||
" -h, --help print this help\n"
|
||||
" -m, --mode tabular|multiline output mode\n"
|
||||
" -o, --overview overview mode\n"
|
||||
" -p, --pretty pretty output\n"
|
||||
" -s, --show-secrets allow displaying passwords\n"
|
||||
" -t, --terse terse output\n"
|
||||
" -v, --version how program version\n"
|
||||
" -w, --wait <seconds> set timeout waiting for finishing operations\n"
|
||||
"\n"
|
||||
"OBJECT\n"
|
||||
" g[eneral] NetworkManager's general status and operations\n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue