commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Papendieck, Thomas" <Thomas.Papendi...@opitz-consulting.com>
Subject [cli] help should display "--long-option=VALUE"
Date Mon, 04 Jul 2011 10:43:54 GMT
Dear members,

I want my application displaying following help on command line:
--long-option=VALUE

Having read instructions on http://commons.apache.org/cli/usage.html I wrote following code
for common-cli-1.2:
options.addOption(
       OptionBuilder.withLongOpt("long-option")
         .withValueSeparator('=')
         .hasArg()
         .withArgName("VALUE")
         .create());

But the result is:
--long-option <VALUE>

How do I force common-cli to output --long-option=VALUE instead of --long-option <VALUE>?

BTW: parsing the command line argument "--long-option=VALUE" works great.

Is using cli-2 still the only chance as I found in this list posted by David <achepat...@yahoo.es>
on  Mon, 24 Apr 2006 09:01:35 GMT?

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


Mime
View raw message