[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 3/4] monitor: Point to "help" command on syntax e
From: |
Bandan Das |
Subject: |
[Qemu-devel] [PATCH v5 3/4] monitor: Point to "help" command on syntax error |
Date: |
Wed, 3 Jun 2015 18:38:09 -0400 |
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>
Reviewed-by: Markus Armbruster <address@hidden>
---
monitor.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/monitor.c b/monitor.c
index 33d088e..640c05c 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4127,6 +4127,8 @@ static void handle_user_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;
}
--
2.1.0
- [Qemu-devel] [PATCH v5 0/4] monitor: suggest running "help" for command errors, Bandan Das, 2015/06/03
- [Qemu-devel] [PATCH v5 1/4] monitor: remove debug prints, Bandan Das, 2015/06/03
- [Qemu-devel] [PATCH v5 2/4] monitor: cleanup parsing of cmd name and cmd arguments, Bandan Das, 2015/06/03
- [Qemu-devel] [PATCH v5 4/4] monitor: Fix failure path for "S" argument, Bandan Das, 2015/06/03
- [Qemu-devel] [PATCH v5 3/4] monitor: Point to "help" command on syntax error,
Bandan Das <=
- Re: [Qemu-devel] [PATCH v5 0/4] monitor: suggest running "help" for command errors, Markus Armbruster, 2015/06/08
- Re: [Qemu-devel] [PATCH v5 0/4] monitor: suggest running "help" for command errors, Markus Armbruster, 2015/06/16