Commit bd01334d authored by Jeffrey Lovitz's avatar Jeffrey Lovitz
Browse files

CLI Help text loop verifies arg count

parent 39c70e72
......@@ -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";
......
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