pholser/jopt-simple — Issue #9: access to detected options collection
Author: cwensel
Created: 2011-11-22 22:01:56+00:00
State: open

Would be useful to have access to a collection of the detected options as OptionSpec (and/or String).

This would allow for simple set operations like detecting if some sub-set of N options were set vs using #has && #has N times.

Might also be useful to iterate detected options, like when populating intermediate pojos.

Retaining order in which they were detected would be interesting (no immediate need on this end though)

Distinguishing sets of options having arguments and without arguments (not defaults) would also be useful.

For me, sometimes having arguments and not having them means different things. Set operations on each may simplify my argument checking code etc.

thanks!
chris