monitor: Add completion for help command
PATCH 1/1 monitor: Add completion for help command
Signed-off-by Jan Kiszka <[email protected]>
---
monitor.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
monitor.c +5 -0
@@ -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 :