PosixParser ignores unrecognized tokens starting with '-'
---------------------------------------------------------
Key: CLI-164
URL: https://issues.apache.org/jira/browse/CLI-164
Project: Commons CLI
Issue Type: Bug
Components: Parser
Affects Versions: 1.1
Reporter: Emmanuel Bourg
Fix For: 1.2
PosixParser doesn't handle properly unrecognized tokens starting with '-' when
stopAtNonOption is enabled, the token is simply ignored.
For example, if the option 'a' is defined, the following command line:
{code}-z -a foo{code}
is interpreted as:
{code}-a foo{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.