class NoArgumentOptionSpec extends AbstractOptionSpec<java.lang.Void>
| Constructor and Description |
|---|
NoArgumentOptionSpec(java.util.List<java.lang.String> options,
java.lang.String description) |
NoArgumentOptionSpec(java.lang.String option) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsArguments()
Does this option accept arguments?
|
java.lang.String |
argumentDescription()
Gives a short description of the option's argument.
|
java.lang.String |
argumentTypeIndicator()
Gives an indication of the expected type of the option's
argument.
|
protected java.lang.Void |
convert(java.lang.String argument) |
java.util.List<java.lang.Void> |
defaultValues()
What values will the option take if none are specified on the command line?
|
(package private) void |
handleOption(OptionParser parser,
ArgumentList arguments,
OptionSet detectedOptions,
java.lang.String detectedArgument) |
boolean |
isRequired()
Is this option required on a command line?
|
boolean |
requiresArgument()
Does this option require an argument?
|
argumentTypeIndicatorFrom, convertWith, description, equals, forHelp, hashCode, isForHelp, options, representsNonOptions, toString, value, valuesNoArgumentOptionSpec(java.lang.String option)
NoArgumentOptionSpec(java.util.List<java.lang.String> options,
java.lang.String description)
void handleOption(OptionParser parser, ArgumentList arguments, OptionSet detectedOptions, java.lang.String detectedArgument)
handleOption in class AbstractOptionSpec<java.lang.Void>public boolean acceptsArguments()
OptionDescriptorpublic boolean requiresArgument()
OptionDescriptorpublic boolean isRequired()
OptionDescriptorpublic java.lang.String argumentDescription()
OptionDescriptorpublic java.lang.String argumentTypeIndicator()
OptionDescriptorprotected java.lang.Void convert(java.lang.String argument)
convert in class AbstractOptionSpec<java.lang.Void>public java.util.List<java.lang.Void> defaultValues()
OptionDescriptor