commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Jakarta-commons Wiki] Update of "CLI" by KenTanaka
Date Wed, 18 Jan 2006 22:46:55 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification.

The following page has been changed by KenTanaka:

The comment on the change is:
correction: Usage Scenario shows getOptionValue() a method of options, not cmd

  = Documentation Bugs =
  The Usage Scenarios documentation shows the PosixParser being used for the Ant example.
This won't work. Either the BasicParser or GnuParser should be used for this example.
+ ----
  The [ Usage Scenarios] documentation gives
an API usage example for the Ant '''logfile''' option of:
  {{{Option logfile   = OptionBuilder.withArgName( "file" )}}}[[BR]]
@@ -64, +64 @@

  {{{                                .withDescription(  "use given file for log" )}}}[[BR]]
  {{{                                .create( "}}}'''find'''{{{" );}}}
+ The section titled "Retrieving the argument value" shows an example of accessing the getOptionValue()
method of Options. This is actually a method of CommandLine.
+ {{{// get c option value}}}[[BR]]
+ {{{String countryCode = }}}''options''{{{.getOptionValue("c");}}} // (Wrong if options is
an instance of Options)
+ This should instead be:
+ {{{// get c option value}}}[[BR]]
+ {{{String countryCode = }}}'''cmd'''{{{.getOptionValue("c");}}} // (Here cmd is an instance
of CommandLine)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message