Uses of Interface
joptsimple.OptionSpec
Packages that use OptionSpec
-
Uses of OptionSpec in joptsimple
Classes in joptsimple that implement OptionSpecModifier and TypeClassDescriptionclass(package private) classRepresents the"-W"form of long option specification.classSpecification of an option that accepts an argument.(package private) classA specification for an option that does not accept arguments.classSpecification of a command line's non-option arguments.(package private) classSpecification of an option that accepts an optional argument.classAllows callers to specify whether a given option accepts arguments (required or optional).(package private) classSpecification of an option that accepts a required argument.Fields in joptsimple with type parameters of type OptionSpecModifier and TypeFieldDescriptionprivate final Map<List<String>, Set<OptionSpec<?>>> OptionParser.availableIfprivate final Map<List<String>, Set<OptionSpec<?>>> OptionParser.availableUnlessprivate final List<OptionSpec<?>> OptionSet.detectedSpecsprivate final Map<List<String>, Set<OptionSpec<?>>> OptionParser.requiredIfprivate final Map<List<String>, Set<OptionSpec<?>>> OptionParser.requiredUnlessMethods 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 TypeMethodDescription(package private) voidOptionParser.availableIf(List<String> precedentSynonyms, OptionSpec<?> available) 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.(package private) voidOptionParser.availableUnless(List<String> precedentSynonyms, OptionSpec<?> available) 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.private <V> List<V> OptionSet.defaultValueFor(OptionSpec<V> option) booleanOptionSet.has(OptionSpec<?> option) Tells whether the given option was detected.booleanOptionSet.hasArgument(OptionSpec<?> option) Tells whether there are any arguments associated with the given option.private voidOptionParser.putDependentOption(List<String> precedentSynonyms, OptionSpec<?> required, Map<List<String>, Set<OptionSpec<?>>> target) (package private) voidOptionParser.requiredIf(List<String> precedentSynonyms, OptionSpec<?> required) 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.(package private) voidOptionParser.requiredUnless(List<String> precedentSynonyms, OptionSpec<?> required) 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.private StringOptionException.specToString(OptionSpec<?> option) <V> VOptionSet.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.Method parameters in joptsimple with type arguments of type OptionSpecModifier and TypeMethodDescriptionprivate booleanOptionParser.optionsHasAnyOf(OptionSet options, Collection<OptionSpec<?>> specs) private voidOptionParser.putDependentOption(List<String> precedentSynonyms, OptionSpec<?> required, Map<List<String>, Set<OptionSpec<?>>> target) OptionException.specsToStrings(Collection<? extends OptionSpec<?>> options) Constructors in joptsimple with parameters of type OptionSpecModifierConstructorDescription(package private)MultipleArgumentsForOptionException(OptionSpec<?> options) (package private)OptionArgumentConversionException(OptionSpec<?> options, String argument, Throwable cause) (package private)OptionMissingRequiredArgumentException(OptionSpec<?> option) Constructor parameters in joptsimple with type arguments of type OptionSpecModifierConstructorDescriptionprotectedMissingRequiredOptionsException(List<? extends OptionSpec<?>> missingRequiredOptions) protectedOptionException(Collection<? extends OptionSpec<?>> options) protectedOptionException(Collection<? extends OptionSpec<?>> options, Throwable cause) (package private)UnavailableOptionException(List<? extends OptionSpec<?>> forbiddenOptions)