]> sourceware.org Git - lvm2.git/commitdiff
help: include cmd def info in verbose output
authorDavid Teigland <teigland@redhat.com>
Mon, 3 Apr 2017 21:17:37 +0000 (16:17 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 3 Apr 2017 21:17:37 +0000 (16:17 -0500)
It can sometimes be important to correlate a
command with its cmd def entry, so include
the cross reference info in help -vv output.

tools/lvmcmdline.c

index bf7e216604572baea6939d4a28c328bb905bea6f..bb107d43b42ef34afc535cc8235c6c2acb11660b 100644 (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];
        }
This page took 0.044975 seconds and 5 git commands to generate.