mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 14:51:04 +00:00
CLI Help text loop verifies arg count
This commit is contained in:
parent
39c70e728b
commit
bd01334da1
@ -545,7 +545,7 @@ static void cliIntegrateHelp(void) {
|
|||||||
ch->params = sdscat(ch->params,"key ");
|
ch->params = sdscat(ch->params,"key ");
|
||||||
args--;
|
args--;
|
||||||
}
|
}
|
||||||
while(args--) ch->params = sdscat(ch->params,"arg ");
|
while(args-- > 0) ch->params = sdscat(ch->params,"arg ");
|
||||||
if (entry->element[1]->integer < 0)
|
if (entry->element[1]->integer < 0)
|
||||||
ch->params = sdscat(ch->params,"...options...");
|
ch->params = sdscat(ch->params,"...options...");
|
||||||
ch->summary = "Help not available";
|
ch->summary = "Help not available";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user