From dd41eea77129a4cd8ae5170b02e0fee175af314e Mon Sep 17 00:00:00 2001 From: Bandan Das Date: Wed, 3 Jun 2015 18:38:09 -0400 Subject: 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 --- monitor.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3