CLI Help text loop verifies arg count

This commit is contained in:
Jeffrey Lovitz 2018-08-12 12:47:01 -04:00
parent 39c70e728b
commit bd01334da1

View File

@ -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";