1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

help: include cmd def info in verbose output

It can sometimes be important to correlate a
command with its cmd def entry, so include
the cross reference info in help -vv output.
This commit is contained in:
David Teigland 2017-04-03 16:17:37 -05:00
parent dece723dc7
commit db579b9e93

View File

@ -1830,6 +1830,11 @@ static int _usage(const char *name, int longhelp, int skip_notes)
if ((_cmdline.commands[i].cmd_flags & CMD_FLAG_SECONDARY_SYNTAX) && !show_full)
continue;
log_very_verbose("Command definition index %d enum %d id %s",
_cmdline.commands[i].command_index,
_cmdline.commands[i].command_enum,
_cmdline.commands[i].command_id);
print_usage(&_cmdline.commands[i], show_full, 1);
cmd = &_cmdline.commands[i];
}