| Modifier and Type | Required Element and Description |
|---|---|
String[] |
aliases
A list of aliases for the command.
|
String |
desc
A short description of the command.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
anyFlags
Get whether any flag can be used.
|
String |
flags
Flags allow special processing for flags such as -h in the command,
allowing users to easily turn on a flag.
|
String |
help
A long description for the command.
|
int |
max
The maximum number of arguments.
|
int |
min
The minimum number of arguments.
|
String |
usage
An example usage string of the command.
|
public abstract String[] aliases
public abstract String desc
public abstract String usage
An example would be
[-h <value>] <name> <message>.
If a parametric command is used, this field is unnecessary because usage information will be generated automatically.
public abstract int min
public abstract int max
public abstract String flags
to see accept any flagpublic abstract String help
public abstract boolean anyFlags
The value of this property overrides flags().
Copyright © 2015. All Rights Reserved.