public class CliCommands extends Object
ExecutableCliCommands by name.| Constructor and Description |
|---|
CliCommands(com.beust.jcommander.JCommander jc) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String cliName,
ExecutableCliCommand command)
Registers the given
ExecutableCliCommand under the given name. |
ExecutableCliCommand |
getCommand(String parsedCommand)
Retrieves the
ExecutableCliCommand registered under the given name. |
public void add(String cliName, ExecutableCliCommand command)
ExecutableCliCommand under the given name.cliName - the name used for registeringcommand - the ExecutableCliCommand to registerpublic ExecutableCliCommand getCommand(String parsedCommand) throws com.beust.jcommander.ParameterException
ExecutableCliCommand registered under the given name.parsedCommand - the name of the registered ExecutableCliCommandnull ExecutableCliCommandcom.beust.jcommander.ParameterException - if no ExecutableCliCommand was registered under the given nameCopyright © 2011–2020 aiticon GmbH. All rights reserved.