mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
redis-cli: fix #4990 additional argument in help.
This commit is contained in:
parent
18d65849fd
commit
b67f027699
@ -542,6 +542,7 @@ static void cliIntegrateHelp(void) {
|
|||||||
ch->name = new->argv[0];
|
ch->name = new->argv[0];
|
||||||
ch->params = sdsempty();
|
ch->params = sdsempty();
|
||||||
int args = llabs(entry->element[1]->integer);
|
int args = llabs(entry->element[1]->integer);
|
||||||
|
args--; /* Remove the command name itself. */
|
||||||
if (entry->element[3]->integer == 1) {
|
if (entry->element[3]->integer == 1) {
|
||||||
ch->params = sdscat(ch->params,"key ");
|
ch->params = sdscat(ch->params,"key ");
|
||||||
args--;
|
args--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user