use of org.apache.bookkeeper.tools.framework.CliSpec in project bookkeeper by apache.
the class BKPerf method main.
@SuppressWarnings("unchecked")
public static void main(String[] args) {
CliSpec.Builder<BKFlags> specBuilder = CliSpec.<BKFlags>newBuilder().withName(NAME).withUsage(NAME + " [flags] [command group] [commands]").withDescription(NAME + " evaluates the performance of Apache BookKeeper clusters").withFlags(new BKFlags()).withConsole(System.out).addCommand(new DlogPerfCommandGroup()).addCommand(new TablePerfCommandGroup()).addCommand(new JournalPerfCommandGroup());
CliSpec<BKFlags> spec = specBuilder.build();
int retCode = Cli.runCli(spec, args);
Runtime.getRuntime().exit(retCode);
}