Package com.aspectran.shell.command.option
A simple API for presenting, processing and validating a command line interface.
-
Interface Summary Interface Description OptionParser A class that implements thisOptionParser
interface can parse a String array according to theOptions
specified and return aParsedOptions
. -
Class Summary Class Description Arguments Created: 2019-01-18DefaultOptionParser The default command option parser.HelpFormatter A formatter of help messages for command line options.Option Describes a single command-line option.Option.Builder A nested builder class to createOption
instances using descriptive methods.OptionGroup A group of mutually exclusive options.Options Main entry-point into the library.OptionUtils Contains useful helper methods for classes within this package.ParsedOptions Represents list of arguments parsed against aOptions
descriptor. -
Enum Summary Enum Description OptionValueType Supported Option value types. -
Exception Summary Exception Description AlreadySelectedException Thrown when more than one option in an option group has been provided.AmbiguousOptionException Exception thrown when an option can't be identified from a partial name.MissingOptionException Thrown when a required option has not been provided.MissingOptionValueException Thrown when an option requiring a value is not provided with a value.OptionParserException Base for Exceptions thrown during parsing of a command-line.UnrecognizedOptionException Exception thrown during parsing signalling an unrecognized option was seen.