commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: why is my withArgName argument being overwritten
Date Thu, 26 Mar 2009 07:37:49 GMT
sagun shakya wrote at Donnerstag, 26. März 2009 02:38:

> Hi,
> 
> I have an Option created as:
> Option fooOption = OptionBuilder.withDescription("add foo")
>                                            .withLongOpt("add_foo")
>                                            .hasArgs(2)
>                                            .withArgName("foo")
>                                            .withArgName("bar")
>                                               .create("baz");

Because the OptionBuilder builds always only one option at a time.
http://commons.apache.org/cli/usage.html

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message