public abstract class OptionParsingCommand extends AbstractCommand
Command that parse options using an OptionHandler.OptionHandler| Modifier | Constructor and Description | 
|---|---|
protected  | 
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. 
 | 
Collection<OptionHelp> | 
getOptionsHelp()
Returns help for each supported option. 
 | 
ExitStatus | 
run(String... args)
Run the command. 
 | 
getDescription, getExamples, getName, getUsageHelpprotected OptionParsingCommand(String name, String description, OptionHandler handler)
public String getHelp()
CommandgetHelp in interface CommandgetHelp in class AbstractCommandpublic Collection<OptionHelp> getOptionsHelp()
CommandgetOptionsHelp in interface CommandgetOptionsHelp in class AbstractCommandpublic final ExitStatus run(String... args) throws Exception
Commandargs - command arguments (this will not include the command itself)Exception - if the command failsprotected OptionHandler getHandler()