| Package | Description |
|---|---|
| com.aspectran.shell.command | |
| com.aspectran.shell.command.option |
A simple API for presenting, processing and validating a command line interface.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected ParsedOptions |
AbstractCommand.parse(java.lang.String[] args) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
AlreadySelectedException |
Thrown when more than one option in an option group
has been provided.
|
class |
AmbiguousOptionException |
Exception thrown when an option can't be identified from a partial name.
|
class |
MissingArgumentException |
Thrown when an option requiring an argument
is not provided with an argument.
|
class |
MissingOptionException |
Thrown when a required option has not been provided.
|
class |
UnrecognizedOptionException |
Exception thrown during parsing signalling an unrecognized
option was seen.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
ParsedOptions.getParsedValue(char opt) |
Return a version of this
Option converted to a particular type. |
<T> T |
ParsedOptions.getParsedValue(Option option) |
Return a version of this
Option converted to a particular type. |
<T> T |
ParsedOptions.getParsedValue(java.lang.String opt) |
Return a version of this
Option converted to a particular type. |
protected void |
DefaultOptionParser.handleConcatenatedOptions(java.lang.String token) |
Breaks
token into its constituent parts
using the following algorithm. |
ParsedOptions |
DefaultOptionParser.parse(Options options,
java.lang.String[] arguments) |
|
ParsedOptions |
DefaultOptionParser.parse(Options options,
java.lang.String[] arguments,
boolean stopAtNonOption) |
|
ParsedOptions |
DefaultOptionParser.parse(Options options,
java.lang.String[] arguments,
java.util.Properties properties) |
Parse the arguments according to the specified options and properties.
|
ParsedOptions |
DefaultOptionParser.parse(Options options,
java.lang.String[] arguments,
java.util.Properties properties,
boolean stopAtNonOption) |
Parse the arguments according to the specified options and properties.
|
ParsedOptions |
OptionParser.parse(Options options,
java.lang.String[] arguments) |
Parse the arguments according to the specified options.
|
ParsedOptions |
OptionParser.parse(Options options,
java.lang.String[] arguments,
boolean stopAtNonOption) |
Parse the arguments according to the specified options.
|
ParsedOptions |
OptionParser.parse(Options options,
java.lang.String[] arguments,
java.util.Properties properties) |
Parse the arguments according to the specified options and
properties.
|
ParsedOptions |
OptionParser.parse(Options options,
java.lang.String[] arguments,
java.util.Properties properties,
boolean stopAtNonOption) |
Parse the arguments according to the specified options and
properties.
|
Copyright © 2008–2017 The Aspectran Project. All rights reserved.