mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
CLI Help text loop verifies arg count
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user