Issue Details (XML | Word | Printable)

Key: CLI-164
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Bourg
Reporter: Emmanuel Bourg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons CLI

PosixParser ignores unrecognized tokens starting with '-'

Created: 28/Jul/08 08:19 AM   Updated: 06/Feb/09 06:59 AM
Return to search
Component/s: Parser
Affects Version/s: 1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

Resolution Date: 28/Jul/08 08:44 AM


 Description  « Hide
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:

-z -a foo

is interpreted as:

-a foo


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Bourg added a comment - 28/Jul/08 08:34 AM
Actually, the option is ignored even if stopAtNonOption is disabled, no exception is thrown.