Examples of withOption()


Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

                        .withMinimum(0)
                        .withMaximum(1);
                Iterator iter = commands.iterator();
                while (iter.hasNext()) {
                    CliCommand c = (CliCommand) iter.next();
                    gbuilder.withOption(c.getCommand());
                }
                grpCommands = gbuilder.create();
            } catch (Exception e) {
                log.error("Error while building command group.", e);
                throw new ExecutionException("Error while building command gorup.", e);
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

    addOption("endPhase", null, "Last phase to run", String.valueOf(Integer.MAX_VALUE));

    GroupBuilder gBuilder = new GroupBuilder().withName("Job-Specific Options:");

    for (Option opt : options) {
      gBuilder = gBuilder.withOption(opt);
    }

    group = gBuilder.create();

    CommandLine cmdLine;
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

        options.add(tikaOpt);
        Option mimeTypeOpt = buildOption("mimeType", "m",
                "The mime type to use", true, false, "");
        options.add(mimeTypeOpt);
        for (Option opt : options) {
            gBuilder = gBuilder.withOption(opt);
        }

        Group group = gBuilder.create();

        try {
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

    addOption("endPhase", null, "Last phase to run", String.valueOf(Integer.MAX_VALUE));

    GroupBuilder gBuilder = new GroupBuilder().withName("Job-Specific Options:");

    for (Option opt : options) {
      gBuilder = gBuilder.withOption(opt);
    }

    Group group = gBuilder.create();

    CommandLine cmdLine;
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

    addOption("endPhase", null, "Last phase to run", String.valueOf(Integer.MAX_VALUE));

    GroupBuilder gBuilder = new GroupBuilder().withName("Job-Specific Options:");

    for (Option opt : options) {
      gBuilder = gBuilder.withOption(opt);
    }

    group = gBuilder.create();

    CommandLine cmdLine;
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

    addOption("endPhase", null, "Last phase to run", String.valueOf(Integer.MAX_VALUE));

    GroupBuilder gBuilder = new GroupBuilder().withName("Job-Specific Options:");

    for (Option opt : options) {
      gBuilder = gBuilder.withOption(opt);
    }

    group = gBuilder.create();

    CommandLine cmdLine;
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

    // whether skip the first row of the input file
    Option skipHeaderOption = optionBuilder.withLongName("skipHeader")
        .withShortName("sh").create();

    Group skipHeaderGroup = groupBuilder.withOption(skipHeaderOption).create();

    Option inputOption = optionBuilder
        .withLongName("input")
        .withShortName("i")
        .withRequired(true)
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

        .withLongName("update")
        .withShortName("u")
        .withDescription("whether to incrementally update model if the model exists")
        .create();

    Group modelUpdateGroup = groupBuilder.withOption(updateOption).create();

    Option modelOption = optionBuilder
        .withLongName("model")
        .withShortName("mo")
        .withRequired(true)
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

            .withMinimum(1).withDefault(NeuralNetwork.DEFAULT_REGULARIZATION_WEIGHT).create())
        .withDescription("regularization weight").create();

    // parse the input
    Parser parser = new Parser();
    Group normalOptions = groupBuilder.withOption(inputOption)
        .withOption(skipHeaderOption).withOption(updateOption)
        .withOption(labelsOption).withOption(modelOption)
        .withOption(layerSizeOption).withOption(squashingFunctionOption)
        .withOption(learningRateOption).withOption(momemtumOption)
        .withOption(regularizationOption).create();
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withOption()

        .withShortName("cr")
        .withDescription("the column range of the input file, start from 0")
        .withArgument(argumentBuilder.withName("range").withMinimum(2).withMaximum(2)
            .withDefaults(columnRangeDefault).create()).create();

    Group inputFileTypeGroup = groupBuilder.withOption(skipHeaderOption)
        .withOption(inputColumnRangeOption).withOption(inputFileFormatOption)
        .create();

    Option inputOption = optionBuilder
        .withLongName("input")
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.