mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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.
This commit is contained in:
parent
29161a145e
commit
b951d04337
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user