mirror of https://mirror.osredm.com/root/redis.git
Improve redis-cli help. When help command, we only match command (#8879)
prefix args not all args. So when we help commands with subcommands, all subcommands will be output.
This commit is contained in:
parent
9c927e9de9
commit
0b1b9edb28
|
@ -656,7 +656,7 @@ static void cliOutputHelp(int argc, char **argv) {
|
|||
help = entry->org;
|
||||
if (group == -1) {
|
||||
/* Compare all arguments */
|
||||
if (argc == entry->argc) {
|
||||
if (argc <= entry->argc) {
|
||||
for (j = 0; j < argc; j++) {
|
||||
if (strcasecmp(argv[j],entry->argv[j]) != 0) break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue