|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Option in org.apache.commons.cli |
---|
Fields in org.apache.commons.cli declared as Option | |
---|---|
private Option |
PosixParser.currentOption
holder for the current option |
private Option |
MissingArgumentException.option
The option requiring additional arguments |
private Option |
AlreadySelectedException.option
The option that triggered the exception. |
Methods in org.apache.commons.cli that return Option | |
---|---|
static Option |
OptionBuilder.create()
Create an Option using the current settings |
static Option |
OptionBuilder.create(char opt)
Create an Option using the current settings and with the specified Option char . |
static Option |
OptionBuilder.create(java.lang.String opt)
Create an Option using the current settings and with the specified Option char . |
Option |
MissingArgumentException.getOption()
Return the option requiring an argument that wasn't provided on the command line. |
Option |
AlreadySelectedException.getOption()
Returns the option that was added to the group and triggered the exception. |
Option |
Options.getOption(java.lang.String opt)
Retrieve the Option matching the long or short name specified. |
Option[] |
CommandLine.getOptions()
Returns an array of the processed Option s. |
private Option |
CommandLine.resolveOption(java.lang.String opt)
Retrieves the option object given the long or short option as a String |
Methods in org.apache.commons.cli with parameters of type Option | |
---|---|
Options |
Options.addOption(Option opt)
Adds an option instance |
OptionGroup |
OptionGroup.addOption(Option option)
Add the specified Option to this group. |
(package private) void |
CommandLine.addOption(Option opt)
Add an option to the command line. |
private static void |
HelpFormatter.appendOption(java.lang.StringBuffer buff,
Option option,
boolean required)
Appends the usage clause for an Option to a StringBuffer. |
OptionGroup |
Options.getOptionGroup(Option opt)
Returns the OptionGroup the opt belongs to. |
void |
Parser.processArgs(Option opt,
java.util.ListIterator iter)
Process the argument values for the specified Option opt using the values retrieved from the
specified iterator iter . |
void |
OptionGroup.setSelected(Option option)
Set the selected option of this group to name . |
Constructors in org.apache.commons.cli with parameters of type Option | |
---|---|
AlreadySelectedException(OptionGroup group,
Option option)
Construct a new AlreadySelectedException
for the specified option group. |
|
MissingArgumentException(Option option)
Construct a new MissingArgumentException
with the specified detail message. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |