From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z771e-0005aV-67 for qemu-devel@nongnu.org; Mon, 22 Jun 2015 15:05:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z771c-0002Mw-GG for qemu-devel@nongnu.org; Mon, 22 Jun 2015 15:04:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z771c-0002Me-B3 for qemu-devel@nongnu.org; Mon, 22 Jun 2015 15:04:56 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id D8F9132C412 for ; Mon, 22 Jun 2015 19:04:55 +0000 (UTC) From: Markus Armbruster Date: Mon, 22 Jun 2015 21:04:30 +0200 Message-Id: <1434999889-849-6-git-send-email-armbru@redhat.com> In-Reply-To: <1434999889-849-1-git-send-email-armbru@redhat.com> References: <1434999889-849-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PULL 05/24] monitor: Point to "help" command on syntax error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Bandan Das From: Bandan Das 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 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