commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo K. Shikida" <shik...@gmail.com>
Subject CLI - withValueSeparator problem
Date Wed, 24 Feb 2010 15:57:42 GMT
>From CLI official site

http://commons.apache.org/cli/usage.html

>>>>>>>> expected result >>>>>>>>>>>>

    --block-size=SIZE      use SIZE-byte blocks

>>>>>>>>>>>> code >>>>>>>>>>>>>>

Options.addOption( OptionBuilder.withLongOpt( "block-size" )
                                .withDescription( "use SIZE-byte blocks" )
                                .hasArg()
                                .withArgName("SIZE")
                                .create() );

>>>>>>>> real result >>>>>>>>>>>>

    --block-size SIZE      use SIZE-byte blocks

>>>>>>>> then, I've tried >>>>>>>>>>>>

Options.addOption( OptionBuilder.withLongOpt( "block-size" )
                                .withDescription( "use SIZE-byte blocks" )
                                .hasArg()..withValueSeparator('=')
                                .withArgName("SIZE")
                                .create() );

>>>>>>>> but I still got this >>>>>>>>>>>>

    --block-size SIZE      use SIZE-byte blocks

Please help!

TIA

Leo

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


Mime
View raw message