| Modifier and Type | Method and Description | 
|---|---|
CLI | 
CLI.addArgument(Argument arg)
Adds an argument. 
 | 
CLI | 
CLI.addArguments(List<Argument> args)
Adds a set of arguments. 
 | 
CLI | 
CLI.addOption(Option option)
Adds an option. 
 | 
CLI | 
CLI.addOptions(List<Option> options)
Adds a set of options. 
 | 
CLI | 
CommandLine.cli()  | 
static CLI | 
CLI.create(Class<?> clazz)
Creates an instance of  
CLI from the given Java class. | 
static CLI | 
CLI.create(String name)
Creates an instance of  
CLI using the default implementation. | 
CLI | 
CLI.removeArgument(int index)
Removes an argument identified by its index. 
 | 
CLI | 
CLI.removeOption(String name)
Removes an option identified by its name. 
 | 
CLI | 
CLI.setArguments(List<Argument> args)
Sets the list of arguments. 
 | 
CLI | 
CLI.setDescription(String desc)  | 
CLI | 
CLI.setHidden(boolean hidden)
Sets whether or not the current instance of  
CLI must be hidden. | 
CLI | 
CLI.setName(String name)
Sets the name of the CLI. 
 | 
CLI | 
CLI.setOptions(List<Option> options)
Sets the list of arguments. 
 | 
CLI | 
CLI.setPriority(int priority)
Sets the priority of the CLI. 
 | 
CLI | 
CLI.setSummary(String summary)
Sets the summary of the CLI. 
 | 
CLI | 
CLI.usage(StringBuilder builder)
Generates the usage / help of the current  
CLI. | 
CLI | 
CLI.usage(StringBuilder builder,
     String prefix)
Generates the usage / help of the current  
CLI. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
UsageMessageFormatter.computeUsageLine(StringBuilder buffer,
                String prefix,
                CLI cli)  | 
static CommandLine | 
CommandLine.create(CLI cli)
Creates a command line object from the  
CLI. | 
void | 
UsageMessageFormatter.usage(StringBuilder builder,
     CLI cli)
Computes the usage of the given  
CLI. | 
void | 
UsageMessageFormatter.usage(StringBuilder builder,
     String prefix,
     CLI cli)
Computes the usage of the given  
CLI. | 
| Modifier and Type | Method and Description | 
|---|---|
protected StringBuilder | 
UsageMessageFormatter.renderCommands(StringBuilder sb,
              Collection<CLI> commands)  | 
| Modifier and Type | Method and Description | 
|---|---|
static CLI | 
CLIConfigurator.define(Class<?> clazz)
Creates an instance of the given class, and extracts the metadata from the given class. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CLI | 
ExecutionContext.cli()  | 
CLI | 
DefaultCommandFactory.define()  | 
CLI | 
CommandFactory.define()
Creates a new  
CLI instance. | 
| Modifier and Type | Method and Description | 
|---|---|
default CLI | 
Command.cli()  | 
CLI | 
AnnotatedCommand.cli()  | 
| Modifier and Type | Method and Description | 
|---|---|
static CommandBuilder | 
CommandBuilder.command(CLI cli)
Create a new commmand with its  
CLI descriptor. | 
| Modifier and Type | Method and Description | 
|---|---|
CLI | 
Echo.cli()  | 
| Modifier and Type | Method and Description | 
|---|---|
CLI | 
CLI.getDelegate()  | 
| Modifier and Type | Method and Description | 
|---|---|
static CLI | 
CLI.newInstance(CLI arg)  | 
| Constructor and Description | 
|---|
CLI(CLI delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
CLI | 
CLI.getDelegate()  | 
| Modifier and Type | Method and Description | 
|---|---|
static CLI | 
CLI.newInstance(CLI arg)  | 
| Constructor and Description | 
|---|
CLI(CLI delegate)  | 
Copyright © 2020 Eclipse. All rights reserved.