THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
.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)