You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by John Keyes <jb...@mac.com> on 2002/11/12 12:06:36 UTC

Re: [cli] Add support for stuff like [target [target2 [target3] ...]]

Hi Max,

I'm not sure if there is *full* support for this feature but
I will have a look into it and get back to you on it.  It will
be sometime later today.

-John K

On Sat, 2002-11-09 at 12:50, 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").withDes
> cription("Targets to execute").create("targets");
> 
> For man pages:
> 
> Option config
> =OptionBuilder.hasOptionalArgs().hasAtLeast(1).isAnonymous().withArgName("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:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
John Keyes <jb...@mac.com>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>