commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Rydahl Andersen" <...@eos.dk>
Subject Re: [cli] Add support for stuff like [target [target2 [target3] ...]]
Date Sat, 16 Nov 2002 14:23:43 GMT
Just wondering if you found out of something regarding this ?

/max

----- Original Message -----
From: "John Keyes" <jbjk@mac.com>
To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
Sent: Wednesday, November 13, 2002 1:06 AM
Subject: Re: [cli] Add support for stuff like [target [target2 [target3]
...]]


> Max, I haven't had a chance to get around to this today.  I'll
> investigate it
> 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>
>
>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message