summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2017-04-03 16:36:04 -0500
committerDavid Teigland <teigland@redhat.com>2017-04-03 16:36:04 -0500
commitb951d0433765d3ed7b0507906dec1894053cef4f (patch)
tree0122cee81c5b5d9a3e401af3dcafe1e7a85aac7d
parent29161a145e9c1c50157dca30c17957e4699826d6 (diff)
downloadlvm2-b951d0433765d3ed7b0507906dec1894053cef4f.tar.gz
help: print all options in abbreviated help output
Don't abbreviate the --help output quite as much when there are many command defs. Print all the options in the cmd defs that are shown. --longhelp output is unchanged and includes everything.
-rw-r--r--tools/lvmcmdline.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index bb107d43b..280a05263 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1835,15 +1835,13 @@ static int _usage(const char *name, int longhelp, int skip_notes)
_cmdline.commands[i].command_enum,
_cmdline.commands[i].command_id);
- print_usage(&_cmdline.commands[i], show_full, 1);
+ print_usage(&_cmdline.commands[i], 1, 1);
cmd = &_cmdline.commands[i];
}
/* Common options are printed once for all variants of a command name. */
- if (show_full) {
- print_usage_common_cmd(cname, cmd);
- print_usage_common_lvm(cname, cmd);
- }
+ print_usage_common_cmd(cname, cmd);
+ print_usage_common_lvm(cname, cmd);
if (skip_notes)
return 1;