@Cli(name="help", description="Display available commands or usage of a command", note="Run \"help [command1] [command2] ...\" to display usage or certain command(s). Help without argument shows list of available commands") public class HelpCommand extends Command
Constructor and Description |
---|
HelpCommand() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute command
|
void |
setArgNames(List<String> argNames) |
(package private) void |
setCommandCenter(CommandCenter commandCenter) |
doSuggestArgument, doSuggestOption, getSession, isHelp, setHelp, setSession, suggestArgument, suggestOption
public void execute()
Command
@MultiValue(listType=java.util.ArrayList.class) @Argument public final void setArgNames(List<String> argNames)
argNames
- Array of argumentsfinal void setCommandCenter(CommandCenter commandCenter)
commandCenter
- CommandCenter object that calls this help commandCopyright © 2008–2018. All rights reserved.