Examples of withShortName()


Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

                obuilder
                        .withLongName("version")
                        .withDescription("print the version information and exit")
                        .create();
        optHelp =
                obuilder
                        .withShortName("h")
                        .withLongName("help")
                        .withDescription("print this help")
                        .withArgument(abuilder
                                .withName("command")
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

    DefaultOptionBuilder optBuilder = new DefaultOptionBuilder().withLongName(name).withDescription(description)
        .withRequired(required);

    if (shortName != null) {
      optBuilder.withShortName(shortName);
    }

    if (hasArg) {
      ArgumentBuilder argBuilder = new ArgumentBuilder().withName(name).withMinimum(min).withMaximum(max);
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

    DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
    ArgumentBuilder abuilder = new ArgumentBuilder();
    GroupBuilder gbuilder = new GroupBuilder();

    Option oobOpt = obuilder.withShortName("oob").withRequired(false)
        .withDescription("Optional, estimate the out-of-bag error").create();

    Option dataOpt = obuilder.withLongName("data").withShortName("d")
        .withRequired(true).withArgument(
            abuilder.withName("path").withMinimum(1).withMaximum(1).create())
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

    DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
    ArgumentBuilder abuilder = new ArgumentBuilder();
    GroupBuilder gbuilder = new GroupBuilder();

    Option oobOpt = obuilder.withShortName("oob").withRequired(false)
        .withDescription("Optional, estimate the out-of-bag error").create();

    Option dataOpt = obuilder.withLongName("data").withShortName("d")
        .withRequired(true).withArgument(
            abuilder.withName("path").withMinimum(1).withMaximum(1).create())
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

        DefaultOptionBuilder optBuilder = new DefaultOptionBuilder()
                .withLongName(name).withDescription(description)
                .withRequired(required);

        if (shortName != null) {
            optBuilder.withShortName(shortName);
        }

        if (hasArg) {
            ArgumentBuilder argBuilder = new ArgumentBuilder().withName(name)
                    .withMinimum(1).withMaximum(1);
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

    DefaultOptionBuilder optBuilder = new DefaultOptionBuilder().withLongName(name).withDescription(description)
        .withRequired(required);

    if (shortName != null) {
      optBuilder.withShortName(shortName);
    }

    if (hasArg) {
      ArgumentBuilder argBuilder = new ArgumentBuilder().withName(name).withMinimum(1).withMaximum(1);
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

   
    DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
    ArgumentBuilder abuilder = new ArgumentBuilder();
    GroupBuilder gbuilder = new GroupBuilder();
   
    Option oobOpt = obuilder.withShortName("oob").withRequired(false).withDescription(
      "Optional, estimate the out-of-bag error").create();
   
    Option dataOpt = obuilder.withLongName("data").withShortName("d").withRequired(true).withArgument(
      abuilder.withName("path").withMinimum(1).withMaximum(1).create()).withDescription("Data path").create();
   
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

    DefaultOptionBuilder optBuilder = new DefaultOptionBuilder().withLongName(name).withDescription(description)
        .withRequired(required);

    if (shortName != null) {
      optBuilder.withShortName(shortName);
    }

    if (hasArg) {
      ArgumentBuilder argBuilder = new ArgumentBuilder().withName(name).withMinimum(min).withMaximum(max);
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

    DefaultOptionBuilder optBuilder = new DefaultOptionBuilder().withLongName(name).withDescription(description)
        .withRequired(required);

    if (shortName != null) {
      optBuilder.withShortName(shortName);
    }

    if (hasArg) {
      ArgumentBuilder argBuilder = new ArgumentBuilder().withName(name).withMinimum(min).withMaximum(max);
View Full Code Here

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.withShortName()

    final DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
    obuilder.withRequired(option1.isRequired());
   
    final String shortName = option1.getOpt();
    if(shortName!=null && !" ".equals(shortName)){
      obuilder.withShortName(shortName);
    }
   
    final String longName = option1.getLongOpt();
    if(longName!=null){
      obuilder.withLongName(longName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.