Package org.apache.ivy.util.cli

Examples of org.apache.ivy.util.cli.CommandLineParser


*/
public final class Main {
    private static final int HELP_WIDTH = 80;

    static CommandLineParser getParser() {
        return new CommandLineParser()
            .addCategory("settings options")
            .addOption(new OptionBuilder("settings").arg("settingsfile")
                .description("use given file for settings").create())
            .addOption(new OptionBuilder("cache").arg("cachedir")
                .description("use given directory for cache").create())
View Full Code Here


            .addOption(new OptionBuilder("version")
                .description("displays version information").create());
    }

    public static void main(String[] args) throws Exception {
        CommandLineParser parser = getParser();
        try {
            run(parser, args);
            System.exit(0);
        } catch (ParseException ex) {
            System.err.println(ex.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.ivy.util.cli.CommandLineParser

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.