Package de.hsh.graja.util.cli
Class Command
java.lang.Object
de.hsh.graja.util.cli.Command
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Executes the commandgetName()
Option<?>
void
setDescription
(List<String> description) void
setExamplen
(List<String> example) void
setOptions
(List<Option<?>> options) toString()
-
Field Details
-
COMMAND_TEMPLATE
- See Also:
-
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
getDescription
-
setDescription
-
getExample
-
setExamplen
-
getOptions
-
setOptions
-
toString
-
getOption
-
getName
-
getProvider
-
execute
Executes the command- Parameters:
args
- the actual command line arguments as passed to a main method- Throws:
Exception
CommandException
-