mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-03 13:10:32 -07:00
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 <bsd@redhat.com> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
ae50212ff7
commit
dd41eea771
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue