Tests if an option with the specified name has been provided on the Javadoc command-line and returns the option arguments.

Parameters:

name

The option name (including hyphen).

For example: "-noindex"

Returns:
An array of all option arguments or null, if no option with such a name has been provided on the Javadoc command line.

If the option had no arguments, an empty array is returned.

When several options with the given name have been provided on the Javadoc command line, the arguments of the last option will be returned.

Example:

Suppose, we have the following Javadoc command line:

javadoc ... -doctitle "blah blah" -noindex -group "Special Case" java.lang:java.util -group "Other" java.* ...
Then, here's what getOption() will return for particular arguments:
Argument Result
"-unknown" null
"-doctitle" { "blah blah" }
"-noindex" { }
"-group" { "Other", "java.*" }

See Also:

hasOption(), getOptions()