public class HelpCommand extends ConsoleCommand
| Constructor and Description |
|---|
HelpCommand() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommandName()
The name that the user must use to invoke the command
|
int |
getNumberArguments()
Obtain the command's number of mandatory arguments
|
int |
getNumberOptionalArguments()
Obtain the command's number of optional arguments
|
void |
run(java.util.List<java.lang.String> arguments)
Prints the usage of every command offered by the console
|
java.lang.String |
usage()
A string representation of the command's usage.
|
checkNumberArgumentspublic void run(java.util.List<java.lang.String> arguments)
run in class ConsoleCommandarguments - List of arguments that the command receivespublic java.lang.String getCommandName()
ConsoleCommandgetCommandName in class ConsoleCommandpublic int getNumberArguments()
ConsoleCommandgetNumberArguments in class ConsoleCommandpublic int getNumberOptionalArguments()
ConsoleCommandgetNumberOptionalArguments in class ConsoleCommandpublic java.lang.String usage()
ConsoleCommandhelp command.usage in class ConsoleCommand