List of usage examples for org.apache.commons.cli2.builder CommandBuilder withName
public CommandBuilder withName(final String name)
Command
that is created. From source file:egat.cli.AbstractCommandHandler.java
protected Command createCommand() { final CommandBuilder commandBuilder = new CommandBuilder(); final GroupBuilder groupBuilder = new GroupBuilder(); commandBuilder.withName(getCommandName()); addCommandDescription(commandBuilder); addChildOptions(groupBuilder);/* w w w . j a v a2s . c o m*/ return commandBuilder.withChildren(groupBuilder.create()).create(); }