| 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 | Field | Description |
|---|---|---|
protected Options |
AbstractCommand.options |
| Modifier and Type | Field | Description |
|---|---|---|
protected Options |
DefaultOptionParser.options |
The current options.
|
| Modifier and Type | Method | Description |
|---|---|---|
Options |
Options.addOption(Option opt) |
Adds an option instance.
|
Options |
Options.addOption(java.lang.String opt,
boolean hasArg,
java.lang.String description) |
Add an option that only contains a short-name.
|
Options |
Options.addOption(java.lang.String opt,
java.lang.String description) |
Add an option that only contains a short name.
|
Options |
Options.addOption(java.lang.String opt,
java.lang.String longOpt,
boolean hasArg,
java.lang.String description) |
Add an option that contains a short-name and a long-name.
|
Options |
Options.addOptionGroup(OptionGroup group) |
Add the specified option group.
|
Options |
Options.addRequiredOption(java.lang.String opt,
java.lang.String longOpt,
boolean hasArg,
java.lang.String description) |
Add an option that contains a short-name and a long-name.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
void |
HelpFormatter.printHelp(int width,
java.lang.String cmdLineSyntax,
java.lang.String header,
Options options,
int leftPad,
int descPad,
java.lang.String footer) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printHelp(int width,
java.lang.String cmdLineSyntax,
java.lang.String header,
Options options,
int leftPad,
int descPad,
java.lang.String footer,
boolean autoUsage) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printHelp(int width,
java.lang.String cmdLineSyntax,
java.lang.String header,
Options options,
java.lang.String footer) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printHelp(int width,
java.lang.String cmdLineSyntax,
java.lang.String header,
Options options,
java.lang.String footer,
boolean autoUsage) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printHelp(java.lang.String cmdLineSyntax,
Options options) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printHelp(java.lang.String cmdLineSyntax,
Options options,
boolean autoUsage) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printHelp(java.lang.String cmdLineSyntax,
java.lang.String header,
Options options,
java.lang.String footer) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printHelp(java.lang.String cmdLineSyntax,
java.lang.String header,
Options options,
java.lang.String footer,
boolean autoUsage) |
Print the help for
options with the specified
command line syntax. |
void |
HelpFormatter.printOptions(int width,
Options options,
int leftPad,
int descPad) |
Print the help for the specified Options to the specified writer,
using the specified width, left padding and description padding.
|
void |
HelpFormatter.printUsage(int width,
java.lang.String commandName,
Options options) |
Prints the usage statement for the specified command.
|
protected java.lang.StringBuilder |
HelpFormatter.renderOptions(java.lang.StringBuilder sb,
int width,
Options options,
int leftPad,
int descPad) |
Render the specified Options and return the rendered Options
in a StringBuilder.
|
Copyright © 2008–2017 The Aspectran Project. All rights reserved.