{"issue":{"state":"open","created_at":"2011-11-22T22:01:56Z","updated_at":"2011-11-22T22:01:56Z","comments":0,"user":{"gravatar_id":"67a55d0490f498d4fc353f7d172aaa7f","id":24684,"url":"https://api.github.com/users/cwensel","login":"cwensel","avatar_url":"https://secure.gravatar.com/avatar/67a55d0490f498d4fc353f7d172aaa7f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Would be useful to have access to a collection of the detected options as OptionSpec (and/or String). \r\n\r\nThis would allow for simple set operations like detecting if some sub-set of N options were set vs using #has && #has N times.\r\n\r\nMight also be useful to iterate detected options, like when populating intermediate pojos.\r\n\r\nRetaining order in which they were detected would be interesting (no immediate need on this end though)\r\n\r\nDistinguishing sets of options having arguments and without arguments (not defaults) would also be useful.\r\n\r\nFor me, sometimes having arguments and not having them means different things. Set operations on each may simplify my argument checking code etc.\r\n\r\nthanks!\r\nchris\r\n\r\n","assignee":null,"id":2323607,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":9,"title":"access to detected options collection","html_url":"https://github.com/pholser/jopt-simple/issues/9","closed_at":null,"url":"https://api.github.com/repos/pholser/jopt-simple/issues/9","milestone":null},"action":"opened"}