Modifier and Type | Class | Description |
---|---|---|
static class |
CommandLine.MaxValuesExceededException |
Exception indicating that more values were specified for an option or parameter than its
arity allows. |
static class |
CommandLine.MissingParameterException |
Exception indicating that a required parameter was not specified.
|
static class |
CommandLine.MissingTypeConverterException |
Exception indicating that an annotated field had a type for which no
CommandLine.ITypeConverter was
registered. |
static class |
CommandLine.MutuallyExclusiveArgsException |
Exception indicating that the user input included multiple arguments from a mutually exclusive group.
|
static class |
CommandLine.OverwrittenOptionException |
Exception indicating that an option for a single-value option field has been specified multiple times on the command line.
|
static class |
CommandLine.UnmatchedArgumentException |
Exception indicating that a command line argument could not be mapped to any of the fields annotated with
CommandLine.Option or CommandLine.Parameters . |
Modifier and Type | Method | Description |
---|---|---|
List<Object> |
CommandLine.DefaultExceptionHandler.handleException(CommandLine.ParameterException ex,
PrintStream out,
CommandLine.Help.Ansi ansi,
String... args) |
Deprecated.
|
List<Object> |
CommandLine.IExceptionHandler.handleException(CommandLine.ParameterException ex,
PrintStream out,
CommandLine.Help.Ansi ansi,
String... args) |
Deprecated.
Handles a
ParameterException that occurred while parsing the command
line arguments and optionally returns a list of results. |
R |
CommandLine.DefaultExceptionHandler.handleParseException(CommandLine.ParameterException ex,
String[] args) |
Deprecated.
Prints the message of the specified exception, followed by the usage message for the command or subcommand
whose input was invalid, to the stream returned by
CommandLine.AbstractHandler.err() . |
R |
CommandLine.IExceptionHandler2.handleParseException(CommandLine.ParameterException ex,
String[] args) |
Deprecated.
Handles a
ParameterException that occurred while parsing the command
line arguments and optionally returns a list of results. |
int |
CommandLine.IParameterExceptionHandler.handleParseException(CommandLine.ParameterException ex,
String[] args) |
Handles a
ParameterException that occurred while parsing the command
line arguments and returns an exit code suitable for returning from CommandLine.execute(String...) . |
static boolean |
CommandLine.UnmatchedArgumentException.printSuggestions(CommandLine.ParameterException ex,
PrintStream out) |
Returns
true and prints suggested solutions to the specified stream if such solutions exist, otherwise returns false . |
static boolean |
CommandLine.UnmatchedArgumentException.printSuggestions(CommandLine.ParameterException ex,
PrintWriter writer) |
Returns
true and prints suggested solutions to the specified writer if such solutions exist, otherwise returns false . |
Modifier and Type | Method | Description |
---|---|---|
int |
CommandLine.IExecutionStrategy.execute(CommandLine.ParseResult parseResult) |
"Executes" the user input and returns an exit code.
|
Copyright © 2017–2019. All rights reserved.