|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use OptionSpec | |
---|---|
joptsimple |
Uses of OptionSpec in joptsimple |
---|
Classes in joptsimple that implement OptionSpec | |
---|---|
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 | |
---|---|
Map<OptionSpec<?>,List<?>> |
OptionSet.asMap()
Gives all declared options as a map of string to OptionSpec. |
Map<String,OptionSpec<?>> |
OptionParser.recognizedOptions()
Retrieves all the options which have been configured for the parser. |
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 | ||
---|---|---|
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.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. |
|
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. |
|
|
OptionSet.valueOf(OptionSpec<V> option)
Gives the argument associated with the given option. |
|
|
OptionSet.valuesOf(OptionSpec<V> option)
Gives any arguments associated with the given option. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |