-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.15.2, 6.2.3
-
None
When running the attached sample program, if only one single argument: "-x" or "-y" is provided without value, the parser reports correctly an error, and exists with exit code 1
Run with arguments: -x
Output:
Missing value after '-x'.
But if both arguments are provided without values: "-x -y", then no error is reported, and the second option name is parsed as the first argument value, ending with exit code 0.
Run with arguments: -x -y 3
Output:
{{parsed options: QList("x")
unknown options: QList()
positional arguments: QList("3")}}