All of lore.kernel.org
 help / color / mirror / Atom feed
* master - commands: suggest --help if command doesn't match
@ 2017-02-13 19:46 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2017-02-13 19:46 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b2fd5b31d3cbe1267ab01c4d6af4785f800938f4
Commit:        b2fd5b31d3cbe1267ab01c4d6af4785f800938f4
Parent:        698abdde165a3e747b81f18cf3405f2d4abb5bae
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Mon Feb 13 13:46:17 2017 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Mon Feb 13 13:46:17 2017 -0600

commands: suggest --help if command doesn't match

---
 tools/lvmcmdline.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 58d1a44..44efc85 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]);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-13 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13 19:46 master - commands: suggest --help if command doesn't match David Teigland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.