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. |
| Converter<T,E extends Exception> |
The definition of the functional interface to call when doing a conversion.
|
| 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. |
| DeprecatedAttributes |
Deprecated attributes.
|
| DeprecatedAttributes.Builder |
Builds
DeprecatedAttributes. |
| GnuParser | Deprecated
Since 1.3, use the
DefaultParser instead. |
| HelpFormatter | Deprecated
Use
HelpFormatter. |
| HelpFormatter.Builder |
Builds
HelpFormatter. |
| Option |
Describes a single command-line option.
|
| Option.Builder |
Builds
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 |
TypeHandler will handle the pluggable conversion and verification of Option types.
|
| Enum | Description |
|---|---|
| DefaultParser.NonOptionAction |
Enum representing possible actions that may be done when "non option" is discovered during parsing.
|
| 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-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository