Uses of Interface
joptsimple.OptionSpec
-
Packages that use OptionSpec Package Description joptsimple -
-
Uses of OptionSpec in joptsimple
Classes in joptsimple that implement OptionSpec Modifier and Type Class Description class
AbstractOptionSpec<V>
class
ArgumentAcceptingOptionSpec<V>
Specification of an option that accepts an argument.class
NonOptionArgumentSpec<V>
Specification of a command line's non-option arguments.class
OptionSpecBuilder
Allows callers to specify whether a given option accepts arguments (required or optional).Methods in joptsimple that return types with arguments of type OptionSpec Modifier and Type Method Description java.util.Map<OptionSpec<?>,java.util.List<?>>
OptionSet. asMap()
Gives all declared options as a map of string to OptionSpec.java.util.Map<java.lang.String,OptionSpec<?>>
OptionParser. recognizedOptions()
Retrieves all options-spec pairings which have been configured for the parser in the same order as declared during training.java.util.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 OptionSpec Modifier and Type Method Description OptionSpecBuilder
OptionSpecBuilder. 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
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
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
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> java.util.List<V>
OptionSet. valuesOf(OptionSpec<V> option)
Gives any arguments associated with the given option.Constructor parameters in joptsimple with type arguments of type OptionSpec Constructor Description OptionException(java.util.Collection<? extends OptionSpec<?>> options)
OptionException(java.util.Collection<? extends OptionSpec<?>> options, java.lang.Throwable cause)
-