Commit b67f0276 authored by antirez's avatar antirez
Browse files

redis-cli: fix #4990 additional argument in help.

parent 18d65849
...@@ -542,6 +542,7 @@ static void cliIntegrateHelp(void) { ...@@ -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--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment