Fixes all bugs - 1027737 (Extended ParameterDef in
different package), 1089220 (Bogus assumption on where
non-control arguments appear), 1089233 (indexing into
multiple ParameterDef[]s with ParameterSet), 1091852
(ArgumentProcessor.getIndex() unused, useless), 1091919
(errors in JavaDoc).
Includes the change proposed in support issue 838610,
but the change has not been tested (I *have* tested
using ParameterSets to extend the list of ParameterDefs
processed in a subclass, which required bug 1089233 to
be fixed).
It *should* work precisely the same in all the
situations it supported before, although fixing bug
1089220 means that it also now supports mixing control
arguments and non-control arguments in line. To do
this, and easily access the arguments that
ArgumentProcessor skipped, you'll have to use the
extended methods.
Essentially, the extension lets you control more than
one object with command line parameters with ease. You
can tell ArgumentProcessor to skip over control
arguments ("-c") it doesn't recognize with its current
ParameterSet, and return, afterward, a String[] of all
the arguments it didn't consume (in order). You can
then pass that unconsumed String[] to ArgumentProcessor
again, with a different ParameterSet and object to
modify, and so on; for the last in the chain, you can
tell ArgumentProcessor to complain about unrecognized
control arguments.
I've tested all this functionality, but I haven't
pushed through the test apps to make sure they still
work; and it's possible that someone was depending on
some behavior I changed. Please post comments to the
jargp project, I will read them.
When I have time, I'll try to upload a diff.
JArgP 1.1