From: Bandan Das Date: Wed, 3 Jun 2015 22:38:09 +0000 (-0400) Subject: monitor: Point to "help" command on syntax error X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dd41eea77129a4cd8ae5170b02e0fee175af314e;p=qemu.git monitor: Point to "help" command on syntax error 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 Acked-by: Luiz Capitulino Signed-off-by: Markus Armbruster --- diff --git a/monitor.c b/monitor.c index e29ac746e9..4c7faf9716 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; }