Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 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.

Wiki Markup
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

No Format
                                .hasArg()

BR

No Format
                                .withDescription(  "use given file for log" )

BR

No Format
                                .create( "

file" );

This should instead be:

Option logfile = OptionBuilder.withArgName( "file" )BR

No Format
                                .hasArg()

BR

No Format
                                .withDescription(  "use given file for log" )

BR

No Format
                                .create( "

logfile" );