Uses of Interface
joptsimple.OptionSpec
Packages that use OptionSpec
-
Uses of OptionSpec in joptsimple
Classes in joptsimple that implement OptionSpecModifier and TypeClassDescriptionclass
class
Specification of an option that accepts an argument.class
Specification of a command line's non-option arguments.class
Allows callers to specify whether a given option accepts arguments (required or optional).Methods in joptsimple that return types with arguments of type OptionSpecModifier and TypeMethodDescriptionMap
<OptionSpec<?>, List<?>> OptionSet.asMap()
Gives all declared options as a map of string to OptionSpec.Map
<String, OptionSpec<?>> OptionParser.recognizedOptions()
Retrieves all options-spec pairings which have been configured for the parser in the same order as declared during training.List
<OptionSpec<?>> OptionSet.specs()
Gives the set of options that were detected, in the form of OptionSpecs, in the order in which the options were found on the command line.Methods in joptsimple with parameters of type OptionSpecModifier and TypeMethodDescriptionOptionSpecBuilder.availableIf
(OptionSpec<?> dependent, OptionSpec<?>... otherDependents) Informs an option parser that this builder's option is allowed if the given option is present on the command line.OptionSpecBuilder.availableUnless
(OptionSpec<?> dependent, OptionSpec<?>... otherDependents) Informs an option parser that this builder's option is allowed if the given option is absent on the command line.boolean
OptionSet.has
(OptionSpec<?> option) Tells whether the given option was detected.boolean
OptionSet.hasArgument
(OptionSpec<?> option) Tells whether there are any arguments associated with the given option.OptionSpecBuilder.requiredIf
(OptionSpec<?> dependent, OptionSpec<?>... otherDependents) Informs an option parser that this builder's option is required if the given option is present on the command line.OptionSpecBuilder.requiredUnless
(OptionSpec<?> dependent, OptionSpec<?>... otherDependents) Informs an option parser that this builder's option is required if the given option is absent on the command line.<V> V
OptionSet.valueOf
(OptionSpec<V> option) Gives the argument associated with the given option.<V> List
<V> OptionSet.valuesOf
(OptionSpec<V> option) Gives any arguments associated with the given option.Constructor parameters in joptsimple with type arguments of type OptionSpecModifierConstructorDescriptionprotected
OptionException
(Collection<? extends OptionSpec<?>> options) protected
OptionException
(Collection<? extends OptionSpec<?>> options, Throwable cause)