|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface Option
A command option.
| Optional Element Summary | |
|---|---|
Class<? extends CommandCompleter> |
completer
Specify the command completer type that should be used for this option. |
String |
defaultValue
The default value for this option, if not provided in user input. |
String |
description
|
boolean |
flagOnly
Sets whether or not the option is just a flag. |
String |
help
Help text for this option. |
String |
name
The name of this option. |
boolean |
required
Specify whether or not this option is required. |
String |
shortName
An optional short version of the flag name. |
PromptType |
type
The prompt type to use when validating user input. |
public abstract String name
public abstract String shortName
public abstract String description
public abstract boolean flagOnly
public abstract boolean required
public abstract String defaultValue
public abstract String help
public abstract PromptType type
PromptType restricts user input, you need to make sure that the
option type is compatible with this input, or exceptions may occur. (String or Object are your safest choices.)
public abstract Class<? extends CommandCompleter> completer
|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||