summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2017-02-13 13:46:17 -0600
committerDavid Teigland <teigland@redhat.com>2017-02-13 13:46:17 -0600
commitb2fd5b31d3cbe1267ab01c4d6af4785f800938f4 (patch)
treedc3227fefad3b2d7c0de1de221b1cc5c082ea2b6
parent698abdde165a3e747b81f18cf3405f2d4abb5bae (diff)
downloadlvm2-b2fd5b31d3cbe1267ab01c4d6af4785f800938f4.tar.gz
commands: suggest --help if command doesn't match
-rw-r--r--tools/lvmcmdline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 58d1a443c..44efc85ba 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1542,6 +1542,7 @@ static struct command *_find_command(struct cmd_context *cmd, const char *path,
if (!best_required) {
/* cmd did not have all the required opt/pos args of any command */
log_error("Failed to find a matching command definition.");
+ log_error("Run '%s --help' for more information.", name);
if (close_ro) {
log_warn("Closest command usage is:");
print_usage(&_cmdline.commands[close_i]);