views:

14

answers:

0

For JSAP [java command line parser], I want to use a greedy unflagged option which will capture all subsequent arguments prefixed with '-' as well.

program -runName run1 abc --plan

I want to capture all the arguments after run1 into a single unflagged option. How to do it? I don't want --plan to be treated as an option but as the value for a greedy unflagged option.