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