Package org.apache.commons.cli

Examples of org.apache.commons.cli.Options


        initFramework = false;
    }

    @Override
    protected Options getOptions() {
        Options options = super.getOptions();

        options.addOption(OptionBuilder
                .withLongOpt(SCAN_PATH)
                .withDescription("The Java classpath to scan for Lumify project information. "
                        + "This classpath may include both directories and zip archives (ZIP, JAR, EAR, WAR).")
                .hasArg(true)
                .withArgName(SCAN_PATH)
                .isRequired()
                .create());

        options.addOption(OptionBuilder
                .withLongOpt("short")
                .withDescription("Write minimal details about each Lumify component.")
                .create('s'));

        options.addOption(OptionBuilder
                .withLongOpt("verbose")
                .withDescription("Write full details about each Lumify component.")
                .create('v'));

        return options;
View Full Code Here


        }
    }

    @Override
    protected Options getOptions() {
        Options opts = super.getOptions();

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_INDIR)
                        .withDescription("Input directory")
                        .hasArg()
                        .isRequired()
                        .create("i")
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_SPEED)
                        .withDescription("The speed to replay (default: " + DEFAULT_REPLAY_SPEED + ")")
                        .hasArg()
                        .create("s")
View Full Code Here

        initFramework = false;
    }

    @Override
    protected Options getOptions() {
        Options options = super.getOptions();

        options.addOption(
                OptionBuilder
                        .withLongOpt(OPT_DONT_JOIN)
                        .withDescription("Don't join the server thread and continue with exit")
                        .create()
        );
View Full Code Here

    public int getSessionTimeout() { return sessionTimeout; }

    @Override
    protected Options getOptions() {
        final Options options = new Options();

        options.addOption(
                OptionBuilder
                        .withLongOpt(PORT_OPTION_VALUE)
                        .withDescription("The port to run the HTTP connector on")
                        .withArgName("port_number")
                        .hasArg()
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(HTTPS_PORT_OPTION_VALUE)
                        .withDescription("The port to run the HTTPS connector on")
                        .withArgName("https_port_number")
                        .hasArg()
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(KEY_STORE_PATH_OPTION_VALUE)
                        .withDescription("Path to the JKS keystore used for SSL")
                        .withArgName("key_store_path")
                        .hasArg()
                        .isRequired()
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(KEY_STORE_PASSWORD_OPTION_VALUE)
                        .withDescription("JKS keystore password")
                        .withArgName("key_store_password")
                        .hasArg()
                        .isRequired()
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(TRUST_STORE_PATH_OPTION_VALUE)
                        .withDescription("Path to the JKS truststore used for SSL")
                        .withArgName("trust_store_path")
                        .hasArg()
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(TRUST_STORE_PASSWORD_OPTION_VALUE)
                        .withDescription("JKS truststore password")
                        .withArgName("trust_store_password")
                        .hasArg()
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(REQUIRE_CLIENT_CERT_OPTION_VALUE)
                        .withDescription("require client certificate")
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(WEB_APP_DIR_OPTION_VALUE)
                        .withDescription("Path to the webapp directory")
                        .isRequired()
                        .hasArg(true)
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(CONTEXT_PATH_OPTION_VALUE)
                        .withDescription("Context path for the webapp")
                        .hasArg(true)
                        .create()
        );

        options.addOption(
                OptionBuilder
                        .withLongOpt(SESSION_TIMEOUT_OPTION_VALUE)
                        .withDescription("number of minutes before idle sessions expire")
                        .hasArg(true)
                        .create()
View Full Code Here

    }


    @Override
    protected Options getOptions() {
        Options opts = super.getOptions();

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_QUERY)
                        .withDescription("Flight Aware query (eg \"-idents VRD*\")")
                        .hasArg()
                        .isRequired()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_OUTDIR)
                        .withDescription("Output directory")
                        .hasArg()
                        .create()
View Full Code Here

        }
    }

    @Override
    protected Options getOptions() {
        Options opts = super.getOptions();

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_INPUT)
                        .withDescription("XML Input file")
                        .hasArg()
                        .isRequired()
                        .create('i')
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_OUTPUT)
                        .withDescription("Output .owl file")
                        .hasArg()
                        .isRequired()
View Full Code Here

        }
    }

    @Override
    protected Options getOptions() {
        Options opts = super.getOptions();

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_INPUT)
                        .withDescription("XML Input file")
                        .hasArg()
                        .isRequired()
                        .create('i')
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_INPUT_DIRECTORY)
                        .withDescription("Worldfact Book Download expanded directory")
                        .hasArg()
                        .isRequired()
View Full Code Here

        }
    }

    @Override
    protected Options getOptions() {
        Options opts = super.getOptions();

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_API_KEY)
                        .withDescription("TheMovieDb API Key")
                        .hasArg()
                        .isRequired()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_CACHE_DIRECTORY)
                        .withDescription("Directory to cache json documents in")
                        .hasArg()
                        .isRequired()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_DOWNLOAD_PERSON)
                        .withDescription("Initial person id to download")
                        .hasArg()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_DOWNLOAD_MOVIE)
                        .withDescription("Initial movie id to download")
                        .hasArg()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_DOWNLOAD_PRODUCTION_COMPANY)
                        .withDescription("Initial production company id to download")
                        .hasArg()
                        .create()
View Full Code Here

        }
    }

    @Override
    protected Options getOptions() {
        Options opts = super.getOptions();

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_TABLE_NAMESPACE)
                        .withDescription("Table namespace")
                        .hasArg()
                        .isRequired()
                        .create("n")
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_CONNECTION_STRING)
                        .withDescription("Database connection string")
                        .hasArg()
                        .isRequired()
                        .create("cs")
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_USERNAME)
                        .withDescription("Username")
                        .hasArg()
                        .isRequired()
                        .create("u")
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_PASSWORD)
                        .withDescription("Password")
                        .hasArg()
                        .isRequired()
                        .create("p")
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_OWL_PREFIX)
                        .withDescription("URI prefix used when converting the ontology")
                        .hasArg()
                        .isRequired()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_ID_PREFIX)
                        .withDescription("Prefix of lumify ids")
                        .hasArg()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_OUT_DIR)
                        .withDescription("Output directory for ontology items")
                        .hasArg()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_ONTOLOGY_EXPORT)
                        .withDescription("Export the ontology and then exit")
                        .create()
        );
View Full Code Here

        }
    }

    @Override
    protected Options getOptions() {
        Options opts = super.getOptions();

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_DATADIR)
                        .withDescription("Location of the data directory")
                        .hasArg()
                        .isRequired()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_QUEUE_DUPLICATES)
                        .withDescription("Specify if you would like to queue duplicate files")
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_VISIBILITY_SOURCE)
                        .withDescription("The visibility source data.")
                        .hasArg()
                        .create()
        );

        opts.addOption(
                OptionBuilder
                        .withLongOpt(CMD_OPT_WORKSPACE_ID)
                        .withDescription("The workspace id to import the files into.")
                        .hasArg()
                        .create()
View Full Code Here

TOP

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

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.