Package org.apache.commons.cli

Examples of org.apache.commons.cli.Options.addOption()


  private static Options createCliOptions() {
    Options options = new Options();
    options.addOption(helpOption);
    options.addOption(versionOption);
    options.addOption(dirOption);
    options.addOption(portOption);
    options.addOption(sslPortOption);
    options.addOption(maxAgeOption);
    options.addOption(keyOption);
    return options;
View Full Code Here


  private static Options createCliOptions() {
    Options options = new Options();
    options.addOption(helpOption);
    options.addOption(versionOption);
    options.addOption(dirOption);
    options.addOption(portOption);
    options.addOption(sslPortOption);
    options.addOption(maxAgeOption);
    options.addOption(keyOption);
    return options;
  }
View Full Code Here

    Options options = new Options();
    options.addOption(helpOption);
    options.addOption(versionOption);
    options.addOption(dirOption);
    options.addOption(portOption);
    options.addOption(sslPortOption);
    options.addOption(maxAgeOption);
    options.addOption(keyOption);
    return options;
  }
View Full Code Here

    options.addOption(helpOption);
    options.addOption(versionOption);
    options.addOption(dirOption);
    options.addOption(portOption);
    options.addOption(sslPortOption);
    options.addOption(maxAgeOption);
    options.addOption(keyOption);
    return options;
  }

  private static void printUsage(Options options) {
View Full Code Here

    options.addOption(versionOption);
    options.addOption(dirOption);
    options.addOption(portOption);
    options.addOption(sslPortOption);
    options.addOption(maxAgeOption);
    options.addOption(keyOption);
    return options;
  }

  private static void printUsage(Options options) {
    System.out.println("USAGE:");
View Full Code Here

    Option versionOption = new Option("v", "version", false, "print version information");
    Option serverURLOption = new Option("s", "serverURL", true,
        "URL of Sesame server to connect to, e.g. http://localhost/openrdf-sesame/");
    Option dirOption = new Option("d", "dataDir", true, "Sesame data dir to 'connect' to");

    options.addOption(helpOption);
    options.addOption(versionOption);

    OptionGroup connectGroup = new OptionGroup();
    connectGroup.addOption(serverURLOption);
    connectGroup.addOption(dirOption);
View Full Code Here

    Option serverURLOption = new Option("s", "serverURL", true,
        "URL of Sesame server to connect to, e.g. http://localhost/openrdf-sesame/");
    Option dirOption = new Option("d", "dataDir", true, "Sesame data dir to 'connect' to");

    options.addOption(helpOption);
    options.addOption(versionOption);

    OptionGroup connectGroup = new OptionGroup();
    connectGroup.addOption(serverURLOption);
    connectGroup.addOption(dirOption);
    options.addOptionGroup(connectGroup);
View Full Code Here

     * @return an options parser.
     */
    @SuppressWarnings("static-access")
    private static synchronized Options buildOptions() {
        Options options = new Options();
        options.addOption(OptionBuilder.hasArg().withArgName("path").withDescription("Specify where to find the class files - must be first argument").create("classpath"));
        options.addOption(OptionBuilder.withLongOpt("classpath").hasArg().withArgName("path").withDescription("Aliases for '-classpath'").create("cp"));

        options.addOption(
            OptionBuilder.withLongOpt("define").
            withDescription("define a system property").
View Full Code Here

     */
    @SuppressWarnings("static-access")
    private static synchronized Options buildOptions() {
        Options options = new Options();
        options.addOption(OptionBuilder.hasArg().withArgName("path").withDescription("Specify where to find the class files - must be first argument").create("classpath"));
        options.addOption(OptionBuilder.withLongOpt("classpath").hasArg().withArgName("path").withDescription("Aliases for '-classpath'").create("cp"));

        options.addOption(
            OptionBuilder.withLongOpt("define").
            withDescription("define a system property").
            hasArg(true).
View Full Code Here

    private static synchronized Options buildOptions() {
        Options options = new Options();
        options.addOption(OptionBuilder.hasArg().withArgName("path").withDescription("Specify where to find the class files - must be first argument").create("classpath"));
        options.addOption(OptionBuilder.withLongOpt("classpath").hasArg().withArgName("path").withDescription("Aliases for '-classpath'").create("cp"));

        options.addOption(
            OptionBuilder.withLongOpt("define").
            withDescription("define a system property").
            hasArg(true).
            withArgName("name=value").
            create('D'));
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.