Hi!

At the moment I am trying add commons-cli 1.1 to a small application, but I have a small problem with it.

I used the code shown on the example page:

Option property  = OptionBuilder.withArgName( "property=value" )
                                .hasArg()
                                .withValueSeparator()
.withDescription( "use value for given property" )
                                .create( "D" );


But when I give the program the following arguments:

java -jar test.jar -Dvalue=key -Dnextvalue=newkey -Dhello=world

I only geht the first value=key pair. Even when using getOptionValues("D") .

Any suggestions?

Thanks,
Bodo
--
http://www.tvbrowser.org
http://www.wannawork.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to