You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Apache Wiki <wi...@apache.org> on 2006/01/18 21:51:34 UTC
[Jakarta-commons Wiki] Update of "CLI" by KenTanaka
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:
http://wiki.apache.org/jakarta-commons/CLI
The comment on the change is:
Added documentation correction for Usage Scenarios
------------------------------------------------------------------------------
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 [http://jakarta.apache.org/commons/cli/usage.html Usage Scenarios] documentation gives an API usage example for the Ant '''logfile''' option of:
+
+ {{{Option logfile = OptionBuilder.withArgName( "file" )}}}[[BR]]
+ {{{ .hasArg()}}}[[BR]]
+ {{{ .withDescription( "use given file for log" )}}}[[BR]]
+ {{{ .create( "}}}''file''{{{" );}}}
+
+ This should instead be:
+
+ {{{Option logfile = OptionBuilder.withArgName( "file" )}}}[[BR]]
+ {{{ .hasArg()}}}[[BR]]
+ {{{ .withDescription( "use given file for log" )}}}[[BR]]
+ {{{ .create( "}}}'''logfile'''{{{" );}}}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org