See: Description
| Interface | Description |
|---|---|
| CommandLineParser |
A class that implements the
CommandLineParser interface can parse a String array according to the
Options specified and return a CommandLine. |
| Class | Description |
|---|---|
| BasicParser | Deprecated
since 1.3, use the
DefaultParser instead |
| CommandLine |
Represents list of arguments parsed against a
Options descriptor. |
| CommandLine.Builder |
A nested builder class to create
CommandLine instance using descriptive methods. |
| DefaultParser |
Default parser.
|
| DefaultParser.Builder |
A nested builder class to create
DefaultParser instances
using descriptive methods. |
| GnuParser | Deprecated
since 1.3, use the
DefaultParser instead |
| HelpFormatter |
A formatter of help messages for command line options.
|
| Option |
Describes a single command-line option.
|
| Option.Builder |
A nested builder class to create
Option instances using descriptive methods. |
| OptionBuilder | Deprecated
since 1.3, use
Option.builder(String) instead |
| OptionGroup |
A group of mutually exclusive options.
|
| Options |
Main entry-point into the library.
|
| Parser | Deprecated
since 1.3, the two-pass parsing with the flatten method is not enough flexible to handle complex cases
|
| PatternOptionBuilder |
Allows Options to be created from a single String.
|
| PosixParser | Deprecated
since 1.3, use the
DefaultParser instead |
| TypeHandler |
This is a temporary implementation.
|
| 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.
|
| MissingArgumentException |
Thrown when an option requiring an argument is not provided with an argument.
|
| MissingOptionException |
Thrown when a required option has not been provided.
|
| ParseException |
Base for Exceptions thrown during parsing of a command-line.
|
| UnrecognizedOptionException |
Thrown during parsing signaling an unrecognized option.
|
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.