public static interface CommandLineParser.ArgumentHandler
CommandLineParser.| Modifier and Type | Field and Description |
|---|---|
static CommandLineParser.ArgumentHandler |
DEFAULT_ARGUMENT_HANDLER
Default
CommandLineParser.ArgumentHandler. |
| Modifier and Type | Method and Description |
|---|---|
int |
onUnrecognizedArgument(List<String> argumentsList,
int index)
Called when
CommandLineParser cannot recognize a command line argument. |
static final CommandLineParser.ArgumentHandler DEFAULT_ARGUMENT_HANDLER
CommandLineParser.ArgumentHandler. It just throws a CommandLineException when it finds an
unrecognised option.int onUnrecognizedArgument(List<String> argumentsList, int index) throws CommandLineException
CommandLineParser cannot recognize a command line argument.argumentsList - the argument list.index - the index at which the unrecognized argument has been found in the list.CommandLineParser should continue parsing the
arguments.CommandLineException - if the argument is invalid or not recognized.Copyright © 2021. All rights reserved.