Uses of Interface
joptsimple.OptionDescriptor
Packages that use OptionDescriptor
-
Uses of OptionDescriptor in joptsimple
Classes in joptsimple that implement OptionDescriptorModifier and TypeClassDescriptionclass
(package private) class
Represents the"-W"
form of long option specification.class
Specification of an option that accepts an argument.(package private) class
A specification for an option that does not accept arguments.class
Specification of a command line's non-option arguments.(package private) class
Specification of an option that accepts an optional argument.class
Allows callers to specify whether a given option accepts arguments (required or optional).(package private) class
Specification of an option that accepts a required argument.Methods in joptsimple that return OptionDescriptorModifier and TypeMethodDescriptionprotected OptionDescriptor
BuiltinHelpFormatter.findAndRemoveNonOptionsSpec
(Collection<? extends OptionDescriptor> options) Finds the non-option arguments descriptor in the given collection, removes it, and returns it.Methods in joptsimple with parameters of type OptionDescriptorModifier and TypeMethodDescriptionprotected String
BuiltinHelpFormatter.createDescriptionDisplay
(OptionDescriptor descriptor) Gives a string representing a description of the option with the given descriptor.protected String
BuiltinHelpFormatter.createNonOptionArgumentsDisplay
(OptionDescriptor nonOptionDescriptor) Creates a non-options argument help string.protected String
BuiltinHelpFormatter.createOptionDisplay
(OptionDescriptor descriptor) Creates a string for how the given option descriptor is to be represented in help.protected String
BuiltinHelpFormatter.extractTypeIndicator
(OptionDescriptor descriptor) Gives an indicator of the type of arguments of the option described by the given descriptor, for use in help.protected void
BuiltinHelpFormatter.maybeAppendNonOptionsDescription
(StringBuilder buffer, OptionDescriptor nonOptions) Appends help for the given non-option arguments descriptor to the given buffer.protected void
BuiltinHelpFormatter.maybeAppendOptionInfo
(StringBuilder buffer, OptionDescriptor descriptor) Appends additional info about the given option to the given buffer.protected boolean
BuiltinHelpFormatter.shouldShowNonOptionArgumentDisplay
(OptionDescriptor nonOptionDescriptor) Decides whether or not to show a non-option arguments help.Method parameters in joptsimple with type arguments of type OptionDescriptorModifier and TypeMethodDescriptionprotected void
BuiltinHelpFormatter.addHeaders
(Collection<? extends OptionDescriptor> options) Adds help row headers for option help columns.protected void
BuiltinHelpFormatter.addNonOptionsDescription
(Collection<? extends OptionDescriptor> options) Adds non-option arguments descriptions to the help output.protected void
BuiltinHelpFormatter.addOptions
(Collection<? extends OptionDescriptor> options) Adds help rows for the given options.protected void
BuiltinHelpFormatter.addRows
(Collection<? extends OptionDescriptor> options) Adds rows of help output for the given options.protected OptionDescriptor
BuiltinHelpFormatter.findAndRemoveNonOptionsSpec
(Collection<? extends OptionDescriptor> options) Finds the non-option arguments descriptor in the given collection, removes it, and returns it.BuiltinHelpFormatter.format
(Map<String, ? extends OptionDescriptor> options) Produces help text, given a set of option descriptors.HelpFormatter.format
(Map<String, ? extends OptionDescriptor> options) Produces help text, given a set of option descriptors.protected final boolean
BuiltinHelpFormatter.hasRequiredOption
(Collection<? extends OptionDescriptor> options) Tells whether the given option descriptors contain a "required" option.