public class ResetStatsCommand extends ConsoleCommand
Constructor and Description |
---|
ResetStatsCommand() |
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)
Executes the program given as argument
|
java.lang.String |
usage()
A string representation of the command's usage.
|
checkNumberArguments
public void run(java.util.List<java.lang.String> arguments)
run
in class ConsoleCommand
arguments
- List of arguments that the command receivespublic java.lang.String getCommandName()
ConsoleCommand
getCommandName
in class ConsoleCommand
public int getNumberArguments()
ConsoleCommand
getNumberArguments
in class ConsoleCommand
public int getNumberOptionalArguments()
ConsoleCommand
getNumberOptionalArguments
in class ConsoleCommand
public java.lang.String usage()
ConsoleCommand
help
command.usage
in class ConsoleCommand