1
0
mirror of https://github.com/fluencelabs/redis synced 2025-04-14 05:06:04 +00:00

Merge pull request from jeffreylovitz/cli-help-fix

CLI Help text loop verifies arg count
This commit is contained in:
Salvatore Sanfilippo 2018-09-07 12:28:22 +02:00 committed by GitHub
commit 83b8eaa638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -545,7 +545,7 @@ static void cliIntegrateHelp(void) {
ch->params = sdscat(ch->params,"key ");
args--;
}
while(args--) ch->params = sdscat(ch->params,"arg ");
while(args-- > 0) ch->params = sdscat(ch->params,"arg ");
if (entry->element[1]->integer < 0)
ch->params = sdscat(ch->params,"...options...");
ch->summary = "Help not available";