Example usage for org.apache.commons.cli2.builder CommandBuilder CommandBuilder

List of usage examples for org.apache.commons.cli2.builder CommandBuilder CommandBuilder

Introduction

In this page you can find the example usage for org.apache.commons.cli2.builder CommandBuilder CommandBuilder.

Prototype

public CommandBuilder() 

Source Link

Document

Creates a new CommandBuilder instance.

Usage

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();
}