public abstract class AbstractXBMCSubCommand extends AbstractSubCLICommand
Constructor and Description |
---|
AbstractXBMCSubCommand(ICLICommand rootCommand,
java.lang.String name,
java.lang.String description,
java.util.List<org.apache.commons.cli.Option> options,
IExitHandler exitHandler,
java.io.PrintStream stdout,
java.io.PrintStream stderr)
The constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkNoArgs(org.apache.commons.cli.CommandLine cmd) |
protected IConsole |
getConsole() |
protected IXBMCUpdater |
getUpdater() |
void |
init(Controller controller)
Called to setup stuff that depends on the controller
|
getController, getDescription, getPrintArguments, printUsage, processOptions, processOptionsInternal
addOption, checkSubCommand, displayHelp, doExit, fatal, fatal, getName, getOptions, getStderr, getStdout, handleBadSubCommandOption, info, launch, printOptions, run, shouldDisplayHelp, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public AbstractXBMCSubCommand(ICLICommand rootCommand, java.lang.String name, java.lang.String description, java.util.List<org.apache.commons.cli.Option> options, IExitHandler exitHandler, java.io.PrintStream stdout, java.io.PrintStream stderr)
rootCommand
- The parent commandname
- The name of the sub commanddescription
- The description of the sub commandoptions
- The sub command optionsstdout
- The standard output streamstderr
- The standard error streamexitHandler
- The exit handlerpublic void init(Controller controller)
init
in class BaseLauncher
controller
- The controllerprotected IConsole getConsole()
protected IXBMCUpdater getUpdater()
protected boolean checkNoArgs(org.apache.commons.cli.CommandLine cmd)