public class EmptyCommand extends Command
Constructor and Description |
---|
EmptyCommand(String[] command,
String description) |
Modifier and Type | Method and Description |
---|---|
int |
execute(Location location,
List<String> args)
The abstract call to execute the Command
|
String |
getUsageDescription() |
String |
getUsageExample() |
String |
getUsageHeader() |
addArgument, addOption, addOption, checkArguments, confirm, confirm, defaultArgumentResultHandler, getCommandArgumentList, getCommandLine, getCommandLineOptions, getCommandPath, getCompleter, handleBooleanResponse, handleResponse, isCompleteArgumentList, printHelp, println, printUsage
public int execute(Location location, List<String> args) throws AlpacaException
Command
execute
in class Command
location
- The location executing the command.args
- The command line arguments.AlpacaException
- Thrown if an unexpected error occurs while running the command.public String getUsageDescription()
getUsageDescription
in class Command
public String getUsageExample()
getUsageExample
in class Command
public String getUsageHeader()
getUsageHeader
in class Command
Copyright © 2017 ECG. All rights reserved.