Package joptsimple

Examples of joptsimple.OptionParser.acceptsAll()


    ConnectOperationOptions operationOptions = new ConnectOperationOptions();

    OptionParser parser = new OptionParser();
    OptionSpec<String> optionPlugin = parser.acceptsAll(asList("P", "plugin")).withRequiredArg();
    OptionSpec<String> optionPluginOpts = parser.acceptsAll(asList("o", "plugin-option")).withRequiredArg();
    OptionSpec<Void> optionAddDaemon = parser.acceptsAll(asList("n", "add-daemon"));
    OptionSpec<String> optionPassword = parser.acceptsAll(asList("password")).withRequiredArg();

    OptionSet options = parser.parse(operationArgs);
    List<?> nonOptionArgs = options.nonOptionArguments();
View Full Code Here


    OptionParser parser = new OptionParser();
    OptionSpec<String> optionPlugin = parser.acceptsAll(asList("P", "plugin")).withRequiredArg();
    OptionSpec<String> optionPluginOpts = parser.acceptsAll(asList("o", "plugin-option")).withRequiredArg();
    OptionSpec<Void> optionAddDaemon = parser.acceptsAll(asList("n", "add-daemon"));
    OptionSpec<String> optionPassword = parser.acceptsAll(asList("password")).withRequiredArg();

    OptionSet options = parser.parse(operationArgs);
    List<?> nonOptionArgs = options.nonOptionArguments();

    // Set interactivity mode 
View Full Code Here

    CleanupOperationOptions operationOptions = new CleanupOperationOptions();

    OptionParser parser = new OptionParser();
    parser.allowsUnrecognizedOptions();

    OptionSpec<Void> optionForce = parser.acceptsAll(asList("f", "force"));
    OptionSpec<Void> optionNoDatabaseMerge = parser.acceptsAll(asList("M", "no-database-merge"));
    OptionSpec<Void> optionNoOldVersionRemoval = parser.acceptsAll(asList("V", "no-version-removal"));
    OptionSpec<Void> optionNoRemoveTempFiles = parser.acceptsAll(asList("T", "no-temp-removal"));
    OptionSpec<Integer> optionKeepVersions = parser.acceptsAll(asList("k", "keep-versions")).withRequiredArg().ofType(Integer.class);
    OptionSpec<String> optionSecondsBetweenCleanups = parser.acceptsAll(asList("t", "time-between-cleanups")).withRequiredArg()
View Full Code Here

    OptionParser parser = new OptionParser();
    parser.allowsUnrecognizedOptions();

    OptionSpec<Void> optionForce = parser.acceptsAll(asList("f", "force"));
    OptionSpec<Void> optionNoDatabaseMerge = parser.acceptsAll(asList("M", "no-database-merge"));
    OptionSpec<Void> optionNoOldVersionRemoval = parser.acceptsAll(asList("V", "no-version-removal"));
    OptionSpec<Void> optionNoRemoveTempFiles = parser.acceptsAll(asList("T", "no-temp-removal"));
    OptionSpec<Integer> optionKeepVersions = parser.acceptsAll(asList("k", "keep-versions")).withRequiredArg().ofType(Integer.class);
    OptionSpec<String> optionSecondsBetweenCleanups = parser.acceptsAll(asList("t", "time-between-cleanups")).withRequiredArg()
        .ofType(String.class);
View Full Code Here

    OptionParser parser = new OptionParser();
    parser.allowsUnrecognizedOptions();

    OptionSpec<Void> optionForce = parser.acceptsAll(asList("f", "force"));
    OptionSpec<Void> optionNoDatabaseMerge = parser.acceptsAll(asList("M", "no-database-merge"));
    OptionSpec<Void> optionNoOldVersionRemoval = parser.acceptsAll(asList("V", "no-version-removal"));
    OptionSpec<Void> optionNoRemoveTempFiles = parser.acceptsAll(asList("T", "no-temp-removal"));
    OptionSpec<Integer> optionKeepVersions = parser.acceptsAll(asList("k", "keep-versions")).withRequiredArg().ofType(Integer.class);
    OptionSpec<String> optionSecondsBetweenCleanups = parser.acceptsAll(asList("t", "time-between-cleanups")).withRequiredArg()
        .ofType(String.class);
    OptionSpec<Integer> optionMaxDatabaseFiles = parser.acceptsAll(asList("x", "max-database-files")).withRequiredArg().ofType(Integer.class);
View Full Code Here

    try {
      // Define global options
      OptionParser parser = new OptionParser();
      parser.allowsUnrecognizedOptions();

      OptionSpec<Void> optionHelp = parser.acceptsAll(asList("h", "help"));
      OptionSpec<File> optionLocalDir = parser.acceptsAll(asList("l", "localdir")).withRequiredArg().ofType(File.class);
      OptionSpec<String> optionLog = parser.acceptsAll(asList("log")).withRequiredArg();
      OptionSpec<Void> optionLogPrint = parser.acceptsAll(asList("print"));
      OptionSpec<String> optionLogLevel = parser.acceptsAll(asList("loglevel")).withOptionalArg();
      OptionSpec<Void> optionDebug = parser.acceptsAll(asList("D", "debug"));
View Full Code Here

      // Define global options
      OptionParser parser = new OptionParser();
      parser.allowsUnrecognizedOptions();

      OptionSpec<Void> optionHelp = parser.acceptsAll(asList("h", "help"));
      OptionSpec<File> optionLocalDir = parser.acceptsAll(asList("l", "localdir")).withRequiredArg().ofType(File.class);
      OptionSpec<String> optionLog = parser.acceptsAll(asList("log")).withRequiredArg();
      OptionSpec<Void> optionLogPrint = parser.acceptsAll(asList("print"));
      OptionSpec<String> optionLogLevel = parser.acceptsAll(asList("loglevel")).withOptionalArg();
      OptionSpec<Void> optionDebug = parser.acceptsAll(asList("D", "debug"));
      OptionSpec<Void> optionShortVersion = parser.acceptsAll(asList("v"));
View Full Code Here

      OptionParser parser = new OptionParser();
      parser.allowsUnrecognizedOptions();

      OptionSpec<Void> optionHelp = parser.acceptsAll(asList("h", "help"));
      OptionSpec<File> optionLocalDir = parser.acceptsAll(asList("l", "localdir")).withRequiredArg().ofType(File.class);
      OptionSpec<String> optionLog = parser.acceptsAll(asList("log")).withRequiredArg();
      OptionSpec<Void> optionLogPrint = parser.acceptsAll(asList("print"));
      OptionSpec<String> optionLogLevel = parser.acceptsAll(asList("loglevel")).withOptionalArg();
      OptionSpec<Void> optionDebug = parser.acceptsAll(asList("D", "debug"));
      OptionSpec<Void> optionShortVersion = parser.acceptsAll(asList("v"));
      OptionSpec<Void> optionFullVersion = parser.acceptsAll(asList("vv"));
View Full Code Here

      parser.allowsUnrecognizedOptions();

      OptionSpec<Void> optionHelp = parser.acceptsAll(asList("h", "help"));
      OptionSpec<File> optionLocalDir = parser.acceptsAll(asList("l", "localdir")).withRequiredArg().ofType(File.class);
      OptionSpec<String> optionLog = parser.acceptsAll(asList("log")).withRequiredArg();
      OptionSpec<Void> optionLogPrint = parser.acceptsAll(asList("print"));
      OptionSpec<String> optionLogLevel = parser.acceptsAll(asList("loglevel")).withOptionalArg();
      OptionSpec<Void> optionDebug = parser.acceptsAll(asList("D", "debug"));
      OptionSpec<Void> optionShortVersion = parser.acceptsAll(asList("v"));
      OptionSpec<Void> optionFullVersion = parser.acceptsAll(asList("vv"));
View Full Code Here

      OptionSpec<Void> optionHelp = parser.acceptsAll(asList("h", "help"));
      OptionSpec<File> optionLocalDir = parser.acceptsAll(asList("l", "localdir")).withRequiredArg().ofType(File.class);
      OptionSpec<String> optionLog = parser.acceptsAll(asList("log")).withRequiredArg();
      OptionSpec<Void> optionLogPrint = parser.acceptsAll(asList("print"));
      OptionSpec<String> optionLogLevel = parser.acceptsAll(asList("loglevel")).withOptionalArg();
      OptionSpec<Void> optionDebug = parser.acceptsAll(asList("D", "debug"));
      OptionSpec<Void> optionShortVersion = parser.acceptsAll(asList("v"));
      OptionSpec<Void> optionFullVersion = parser.acceptsAll(asList("vv"));

      // Parse global options and operation name
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.