public abstract class OptionParsingCommand extends AbstractCommand
Command that pare options using an OptionHandler.| Constructor and Description |
|---|
OptionParsingCommand(String name,
String description,
OptionHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
protected OptionHandler |
getHandler() |
String |
getHelp()
Gets full help text for the command, e.g.
|
void |
run(String... args)
Run the command.
|
getDescription, getName, getUsageHelppublic OptionParsingCommand(String name, String description, OptionHandler handler)
public String getHelp()
CommandgetHelp in interface CommandgetHelp in class AbstractCommandpublic final void run(String... args) throws Exception
Commandargs - command arguments (this will not include the command itself)Exceptionprotected OptionHandler getHandler()
Copyright © 2013. All Rights Reserved.