|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- type od tha user data.public interface OptionRegistry<D>
Represents a registry of options.
Method Summary | |
---|---|
void |
registerOption(String optionName,
Command<? super D> command,
int numberOfArgument)
register an option with a name a command to execute and a number of option argument. |
void |
registerOption(String prefix,
String optionName,
Command<? super D> command,
int numberOfArgument)
register an option with a specific prefix, a name a command to execute and a number of option argument. |
Method Detail |
---|
void registerOption(String optionName, Command<? super D> command, int numberOfArgument)
CommandLineParser(defaultPrefix,usageFormatter,commands)
.
optionName
- the name of the option.command
- the command associated with the option.numberOfArgument
- hte number of argument of the option.void registerOption(String prefix, String optionName, Command<? super D> command, int numberOfArgument)
prefix
- the specific prefix of the option.optionName
- the name of the option.command
- the command associated with the option.numberOfArgument
- hte number of argument of the option.registerOption(String, Command, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |