diff options
author | David Teigland <teigland@redhat.com> | 2017-04-03 16:17:37 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-04-03 16:17:37 -0500 |
commit | db579b9e936df14edb9c06830c21e5b5aef666a4 (patch) | |
tree | 7ce5defb4ba9412484e1ec2cf1c5aeb64507475e | |
parent | dece723dc72f93cb1ea9c21bd1a6518435832c88 (diff) | |
download | lvm2-db579b9e936df14edb9c06830c21e5b5aef666a4.tar.gz |
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.
-rw-r--r-- | tools/lvmcmdline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index bf7e21660..bb107d43b 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -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]; } |