summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2017-04-03 16:17:37 -0500
committerDavid Teigland <teigland@redhat.com>2017-04-03 16:17:37 -0500
commitdb579b9e936df14edb9c06830c21e5b5aef666a4 (patch)
tree7ce5defb4ba9412484e1ec2cf1c5aeb64507475e
parentdece723dc72f93cb1ea9c21bd1a6518435832c88 (diff)
downloadlvm2-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.c5
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];
}