mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 03:43:37 +08:00
monitor: Add completion for help command
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a08d43677f
commit
f3353c6bc3
@ -2921,6 +2921,11 @@ static void monitor_find_completion(const char *cmdline)
|
||||
for(key = key_defs; key->name != NULL; key++) {
|
||||
cmd_completion(str, key->name);
|
||||
}
|
||||
} else if (!strcmp(cmd->name, "help|?")) {
|
||||
readline_set_completion_index(cur_mon->rs, strlen(str));
|
||||
for (cmd = mon_cmds; cmd->name != NULL; cmd++) {
|
||||
cmd_completion(str, cmd->name);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user