Example usage for org.apache.commons.cli OptionBuilder withDescription

List of usage examples for org.apache.commons.cli OptionBuilder withDescription

Introduction

In this page you can find the example usage for org.apache.commons.cli OptionBuilder withDescription.

Prototype

public static OptionBuilder withDescription(String newDescription) 

Source Link

Document

The next Option created will have the specified description

Usage

From source file:org.obiba.bitwise.client.PrintCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("print the record indexes of the last query result")
            .withLongOpt("print").create('p');
}

From source file:org.obiba.bitwise.client.PrintRecordCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("load and print the record <i>.").withLongOpt("record").hasArg()
            .withArgName("i").create('r');
}

From source file:org.obiba.genobyte.cli.CloseCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("close the current genotyping store").withLongOpt("close").create('c');
}

From source file:org.obiba.genobyte.cli.DropCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("delete the store <name>").withLongOpt("delete").hasArg()
            .withArgName("name").create('d');
}

From source file:org.obiba.genobyte.cli.GenotypeReportCommand.java

public Option getOption() {
    StringBuilder sb = new StringBuilder();
    for (GenotypeReport report : reports_) {
        if (sb.length() > 0)
            sb.append(", ");
        sb.append(report.getReportType()).append(" (").append(report.getShortReportType()).append(")");
    }/*from ww  w .  ja v a2 s.co m*/
    return OptionBuilder
            .withDescription("generates a genotype report. Available types are [" + sb.toString() + "]")
            .withLongOpt("genotypes").hasArgs().withArgName("type> <filename(s)").create('g');
}

From source file:org.obiba.genobyte.cli.InconsistenciesCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("compute the store's inconsistencies").withLongOpt("inconsistencies")
            .create('i');
}

From source file:org.obiba.genobyte.cli.LoadFileCommand.java

public Option getOption() {
    StringBuilder sb = new StringBuilder();
    for (FileTypeLoader loader : loaders_) {
        if (sb.length() > 0)
            sb.append(", ");
        sb.append(loader.getFileType()).append(" (").append(loader.getShortFileType()).append(")");
    }/*from   www  .  j  av  a 2  s .  c om*/
    return OptionBuilder.withDescription("loads a file. Available types are [" + sb.toString() + "]")
            .withLongOpt("load").hasArgs(2).withArgName("type> <file").create('l');
}

From source file:org.obiba.genobyte.cli.OpenCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("open the store <name>").withLongOpt("open").hasArg()
            .withArgName("name").create('o');
}

From source file:org.obiba.genobyte.cli.PrintCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("print the record indexes of query <q#>").hasArgs(1).withArgName("q#")
            .withLongOpt("print").create('p');
}

From source file:org.obiba.genobyte.cli.PrintHistoryCommand.java

public Option getOption() {
    return OptionBuilder.withDescription("print the history of executed queries.").withLongOpt("history")
            .create('y');
}