tomorrow for you.
-John K
On Saturday, Nov 9, 2002, at 12:50 Europe/Dublin, Max Rydahl Andersen wrote:
I do not know the correct term for the feature, but something like:
"anonymous options" that is always listed at the end of the commandline.
Currently one access these options via cmdline.getArgList(), but e.g. the
HelpFormatter does not include these in its usage print and they are not
verified by the parser. e.g. man command line is required to have at least
one page argument, but that is not checkked by the parser - that should be
possible.
Maybe something like this:
For Ant targets:
Option config
=OptionBuilder.hasOptionalArgs().isAnonymous().withArgName("target").wi thDes
cription("Targets to execute").create("targets");
For man pages:
Option config
=OptionBuilder.hasOptionalArgs().hasAtLeast(1).isAnonymous().withArgNam e("pa
ge").withDescription("Page to show").create("pages");
Would'nt that provide a more complete commandline definition/parsing ?
/max
p.s. I haven't overlooked something in the docs, right ?
--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>
- - - - - - - - - - - - - - - - - - - - - - - Jakarta Commons CLI http://jakarta.apache.org/commons/cli
-- To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>
