Package org.apache.commons.cli

Examples of org.apache.commons.cli.OptionBuilder


            throw new CLParserException("Too many arguments");
        }
    }

    protected void addTargets() {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName("targets");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_TARGETS);
        optionBuilder = optionBuilder
                .withDescription("If no targets are provided, the module is distributed to all available "
                        + "targets. Geronimo only provides one target (ever), so this is primarily "
                        + "useful when using a different driver.\n");
        Option option = optionBuilder.create(ARGUMENT_TARGETS_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here


                        + "A URI to connect to Geronimo (including optional host and port parameters) has the form: "
                        + "deployer:geronimo:jmx[://host[:port]] (though you could also just use --host and --port instead).");
    }

    protected void addOptionWithParam(String longOption, String shortOption, String argName, String desc) {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName(argName);
        optionBuilder = optionBuilder.withLongOpt(longOption);
        optionBuilder = optionBuilder.withDescription(desc);
        Option option = optionBuilder.create(shortOption);
        options.addOption(option);
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.cli.OptionBuilder

Copyright © 2018 www.massapicom. 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.