Uses of Class
com.aspectran.shell.command.option.Option
Packages that use Option
Package
Description
A simple API for presenting, processing and validating a command line interface.
-
Uses of Option in com.aspectran.shell.command
Methods in com.aspectran.shell.command with parameters of type Option -
Uses of Option in com.aspectran.shell.command.option
Methods in com.aspectran.shell.command.option that return OptionModifier and TypeMethodDescriptionOption.Builder.build()
Constructs an Option with the values declared by thisOption.Builder
.Option.clone()
AlreadySelectedException.getOption()
Returns the option that was added to the group and triggered the exception.MissingOptionValueException.getOption()
Return the option requiring a value that wasn't provided on the command line.Retrieve theOption
matching the long or short name specified.Option[]
ParsedOptions.getOptions()
Returns an array of the processedOption
s.ParsedOptions.resolveOption
(String name) Retrieves the option object given the long or short option as a String.Methods in com.aspectran.shell.command.option that return types with arguments of type OptionModifier and TypeMethodDescriptionOptions.getAllOptions()
Retrieve a read-only list of options in this set.Options.getHelpOptions()
Returns the Options for use by the HelpFormatter.HelpFormatter.getOptionComparator()
Comparator used to sort the options when they output in help text.OptionGroup.getOptions()
ParsedOptions.iterator()
Returns an iterator over the Option members of ParsedOptions.Methods in com.aspectran.shell.command.option with parameters of type OptionModifier and TypeMethodDescriptionAdd the specifiedOption
to this group.Adds an option instance.protected void
Add an option.Options.getOptionGroup
(Option opt) Returns the OptionGroup theopt
belongs to.ParsedOptions.getProperties
(Option option) Retrieve the map of values associated to the option.<T> T
ParsedOptions.getTypedValue
(Option option) Return a version of thisOption
converted to a particular type.Retrieve the first argument, if any, of this option.Retrieve the first argument, if any, of an option.String[]
Retrieves the array of values, if any, of an option.boolean
Query to see if an option has been set.void
OptionGroup.setSelected
(Option option) Set the selected option of this group toname
.Method parameters in com.aspectran.shell.command.option with type arguments of type OptionModifier and TypeMethodDescriptionvoid
HelpFormatter.setOptionComparator
(Comparator<Option> comparator) Set the comparator used to sort the options when they output in help text.Constructors in com.aspectran.shell.command.option with parameters of type OptionModifierConstructorDescriptionAlreadySelectedException
(OptionGroup group, Option option) Construct a newAlreadySelectedException
for the specified option group.MissingOptionValueException
(Option option) Construct a newMissingOptionValueException
with the specified detail message.