Issue Details (XML | Word | Printable)

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

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

PosixParser keeps processing tokens after a non unrecognized long option

Created: 28/Jul/08 09:23 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 09:47 AM


 Description  « Hide
PosixParser keeps processing tokens after a non unrecognized long option when stopAtNonOption is enabled. The tokens after the unrecognized long option are burst, split around '=', etc.. instead of being kept as is.

For example, with the options 'a' and 'b' defined, 'b' having an argument, the following command line:

--zop -abfoo

is interpreted as:

--zop -a -b foo

but the last token should remain unchanged.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.