public class CommandLineRunner extends Object
| Constructor and Description |
|---|
CommandLineRunner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
limitedUsage(String mainCommandName)
default ctor *./
public CommandLineRunner() {
super();
}
/**
print the basic help with the list of available commands and how to gain more details
using the help option, if any.
|
void |
registerSubcommand(String subcommandName,
CliCommand subcommand)
Registers a new sub command.
|
void |
runOrHelp(String mainCommandName,
String[] args) |
protected void limitedUsage(String mainCommandName)
mainCommandName - the main top level executable namepublic void runOrHelp(String mainCommandName, String[] args)
mainCommandName - the main top level executable nameargs - the user provided command line argspublic void registerSubcommand(String subcommandName, CliCommand subcommand)
subcommandName - the sub command namesubcommand - the subcommand class instanceCopyright © 2023. All rights reserved.