Uses of Class
org.apache.commons.cli.Option
-
-
Uses of Option in org.apache.commons.cli
Methods in org.apache.commons.cli that return Option Modifier and Type Method Description static Option
OptionBuilder. create()
Create an Option using the current settingsstatic Option
OptionBuilder. create(char opt)
Create an Option using the current settings and with the specified Optionchar
.static Option
OptionBuilder. create(java.lang.String opt)
Create an Option using the current settings and with the specified Optionchar
.Option
AlreadySelectedException. getOption()
Returns the option that was added to the group and triggered the exception.Option
MissingArgumentException. getOption()
Return the option requiring an argument that wasn't provided on the command line.Option
Options. getOption(java.lang.String opt)
Retrieve theOption
matching the long or short name specified.Option[]
CommandLine. getOptions()
Returns an array of the processedOption
s.Methods in org.apache.commons.cli with parameters of type Option Modifier and Type Method Description OptionGroup
OptionGroup. addOption(Option option)
Add the specifiedOption
to this group.Options
Options. addOption(Option opt)
Adds an option instanceOptionGroup
Options. getOptionGroup(Option opt)
Returns the OptionGroup theopt
belongs to.void
Parser. processArgs(Option opt, java.util.ListIterator iter)
Process the argument values for the specified Optionopt
using the values retrieved from the specified iteratoriter
.void
OptionGroup. setSelected(Option option)
Set the selected option of this group toname
.Constructors in org.apache.commons.cli with parameters of type Option Constructor Description AlreadySelectedException(OptionGroup group, Option option)
Construct a newAlreadySelectedException
for the specified option group.MissingArgumentException(Option option)
Construct a newMissingArgumentException
with the specified detail message.
-