mx_cmd_arg_parse(): fix: misbehaviour..
commitf5e9bb0e39661ace2bd1e616023f2fac94bf94a9
authorSteffen Nurpmeso <steffen@sdaoden.eu>
Thu, 3 Nov 2022 00:18:50 +0000 (3 01:18 +0100)
committerSteffen Nurpmeso <steffen@sdaoden.eu>
Thu, 3 Nov 2022 00:27:46 +0000 (3 01:27 +0100)
treee93b41115672ec55eca6f249ee5ed605ea16d030
parentecdbc37c7733d870c8edac08c488a57c6a150e36
mx_cmd_arg_parse(): fix: misbehaviour..

Until now a final GREEDY argument that entered the jredo: loop due
to conditions (remaining input to be injected due to semicolon, or
cookie set) would fail because cad_idx would never be incremented
over it, iff the argument would not also be OPTIONal.
Instead flag that we entered the jredo: loop, and do not cause any
failure if seen.
src/mx/cmd.c