List of usage examples for org.apache.commons.cli2.builder CommandBuilder CommandBuilder
public CommandBuilder()
CommandBuilder
instance. 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);/* ww w . jav a 2 s. c om*/ return commandBuilder.withChildren(groupBuilder.create()).create(); }