airlift / airline

Java annotation-based framework for parsing Git like command line structures
Apache License 2.0
847 stars 138 forks source link

Use '--' to stop parsing option values #10

Closed schwarzmx closed 10 years ago

schwarzmx commented 11 years ago

Whenever there's an option with a high arity value, and there are arguments to be parsed, the previous functionality of airline would do a greedy parsing regardless of whether a -- was present.

Now, whenever a -- is found when parsing option values, it will be discarded and look for arguments afterwards, which is the usual unix-like command behavior.

electrum commented 10 years ago

Closing this since -- is now supported. Please open an issue or new pull request if you find any issues with the current behavior.