Package joptsimple
Class RequiredArgumentOptionSpec<V>
java.lang.Object
joptsimple.AbstractOptionSpec<V>
joptsimple.ArgumentAcceptingOptionSpec<V>
joptsimple.RequiredArgumentOptionSpec<V>
- Type Parameters:
V
- represents the type of the arguments this option accepts
- All Implemented Interfaces:
OptionDescriptor
,OptionSpec<V>
Specification of an option that accepts a required argument.
-
Constructor Summary
ConstructorsConstructorDescriptionRequiredArgumentOptionSpec
(String option) RequiredArgumentOptionSpec
(List<String> options, String description) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
detectOptionArgument
(OptionParser parser, ArgumentList arguments, OptionSet detectedOptions) Methods inherited from class joptsimple.ArgumentAcceptingOptionSpec
acceptsArguments, addArguments, argumentDescription, argumentTypeIndicator, canConvertArgument, convert, defaultsTo, defaultsTo, defaultValues, describedAs, equals, handleOption, hashCode, isArgumentOfNumberType, isRequired, ofType, required, requiresArgument, withValuesConvertedBy, withValuesSeparatedBy, withValuesSeparatedBy
Methods inherited from class joptsimple.AbstractOptionSpec
argumentTypeIndicatorFrom, convertWith, description, forHelp, isForHelp, options, representsNonOptions, toString, value, values
-
Constructor Details
-
RequiredArgumentOptionSpec
RequiredArgumentOptionSpec(String option) -
RequiredArgumentOptionSpec
-
-
Method Details
-
detectOptionArgument
protected void detectOptionArgument(OptionParser parser, ArgumentList arguments, OptionSet detectedOptions) - Specified by:
detectOptionArgument
in classArgumentAcceptingOptionSpec<V>
-