mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #5239 from jeffreylovitz/cli-help-fix
CLI Help text loop verifies arg count
This commit is contained in:
commit
83b8eaa638
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user