Make list-commands command show only one command if an argument is

given, from Ilya Grigoriev in GitHub issue 4352.
This commit is contained in:
nicm
2025-01-27 09:16:05 +00:00
parent 244bb726e2
commit 4c12ac9fb8
3 changed files with 43 additions and 28 deletions

2
cmd.c
View File

@ -445,7 +445,7 @@ cmd_get_alias(const char *name)
}
/* Look up a command entry by name. */
static const struct cmd_entry *
const struct cmd_entry *
cmd_find(const char *name, char **cause)
{
const struct cmd_entry **loop, *entry, *found = NULL;