qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 05/24] monitor: Point to "help" command on syntax err


From: Markus Armbruster
Subject: [Qemu-devel] [PULL 05/24] monitor: Point to "help" command on syntax error
Date: Mon, 22 Jun 2015 21:04:30 +0200

From: Bandan Das <address@hidden>

When a command fails due to incorrect syntax or input, suggest using
the "help" command to get more information about the command.  This
is only applicable for HMP.

Signed-off-by: Bandan Das <address@hidden>
Acked-by: Luiz Capitulino <address@hidden>
Signed-off-by: Markus Armbruster <address@hidden>
---
 monitor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/monitor.c b/monitor.c
index e29ac74..4c7faf9 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4069,6 +4069,8 @@ static void handle_hmp_command(Monitor *mon, const char 
*cmdline)
 
     qdict = monitor_parse_arguments(mon, &cmdline, cmd);
     if (!qdict) {
+        monitor_printf(mon, "Try \"help %s\" for more information\n",
+                       cmd->name);
         return;
     }
 
-- 
1.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]