Package org.apache.commons.cli

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


      group.addOption(systemOpt);
      group.addOption(tableOpt);
      group.addOption(tablePatternOpt);
      group.setRequired(true);
     
      o.addOptionGroup(group);
      userOpt = new Option(Shell.userOption, "user", true, "user to operate on");
      userOpt.setArgName("username");
      userOpt.setRequired(true);
      o.addOption(userOpt);
     
View Full Code Here


     
      group.addOption(systemOpt);
      group.addOption(tableOpt);
      group.setRequired(true);
     
      o.addOptionGroup(group);
     
      userOpt = new Option(userOption, "user", true, "user to operate on");
      userOpt.setArgName("username");
      userOpt.setRequired(true);
      o.addOption(userOpt);
View Full Code Here

   
    Option execfileVerboseOption = new Option("fv", "execute-file-verbose", true, "executes commands from a file at startup, with commands shown");
    execfileVerboseOption.setArgName("file");
    execFileGroup.addOption(execfileVerboseOption);
   
    opts.addOptionGroup(execFileGroup);
   
    OptionGroup instanceOptions = new OptionGroup();
   
    Option hdfsZooInstance = new Option("h", "hdfsZooInstance", false, "use hdfs zoo instance");
    instanceOptions.addOption(hdfsZooInstance);
View Full Code Here

    Option zooKeeperInstance = new Option("z", "zooKeeperInstance", true, "use a zookeeper instance with the given instance name and list of zoo hosts");
    zooKeeperInstance.setArgName("name hosts");
    zooKeeperInstance.setArgs(2);
    instanceOptions.addOption(zooKeeperInstance);
   
    opts.addOptionGroup(instanceOptions);
   
    OptionGroup authTimeoutOptions = new OptionGroup();
   
    Option authTimeoutOpt = new Option(null, "auth-timeout", true, "minutes the shell can be idle without re-entering a password (default "
        + DEFAULT_AUTH_TIMEOUT + " min)");
View Full Code Here

    authTimeoutOptions.addOption(authTimeoutOpt);
   
    Option disableAuthTimeoutOpt = new Option(null, "disable-auth-timeout", false, "disables requiring the user to re-type a password after being idle");
    authTimeoutOptions.addOption(disableAuthTimeoutOpt);
   
    opts.addOptionGroup(authTimeoutOptions);
   
    CommandLine cl;
    try {
      cl = new BasicParser().parse(opts, args);
      if (cl.getArgs().length > 0)
View Full Code Here

    actionGroup.addOption(formatterClassOption);
    actionGroup.addOption(removeFormatterOption);
    actionGroup.addOption(listClassOption);
    actionGroup.setRequired(true);
   
    o.addOptionGroup(actionGroup);
    o.addOption(tableOption);
   
    return o;
  }
 
View Full Code Here

      OptionGroup opg = new OptionGroup();
     
      opg.addOption(optTablePattern);
      opg.addOption(optTableName);
     
      o.addOptionGroup(opg);
     
      return o;
    }
   
    @Override
View Full Code Here

   
    Option execfileVerboseOption = new Option("fv", "execute-file-verbose", true, "executes commands from a file at startup, with commands shown");
    execfileVerboseOption.setArgName("file");
    execFileGroup.addOption(execfileVerboseOption);
   
    opts.addOptionGroup(execFileGroup);
   
    OptionGroup instanceOptions = new OptionGroup();
   
    Option hdfsZooInstance = new Option("h", "hdfsZooInstance", false, "use hdfs zoo instance");
    instanceOptions.addOption(hdfsZooInstance);
View Full Code Here

    Option zooKeeperInstance = new Option("z", "zooKeeperInstance", true, "use a zookeeper instance with the given instance name and list of zoo hosts");
    zooKeeperInstance.setArgName("name hosts");
    zooKeeperInstance.setArgs(2);
    instanceOptions.addOption(zooKeeperInstance);
   
    opts.addOptionGroup(instanceOptions);
   
    OptionGroup authTimeoutOptions = new OptionGroup();
   
    Option authTimeoutOpt = new Option(null, "auth-timeout", true, "minutes the shell can be idle without re-entering a password (default "
        + DEFAULT_AUTH_TIMEOUT + " min)");
View Full Code Here

    authTimeoutOptions.addOption(authTimeoutOpt);
   
    Option disableAuthTimeoutOpt = new Option(null, "disable-auth-timeout", false, "disables requiring the user to re-type a password after being idle");
    authTimeoutOptions.addOption(disableAuthTimeoutOpt);
   
    opts.addOptionGroup(authTimeoutOptions);
   
    CommandLine cl;
    try {
      cl = new BasicParser().parse(opts, args);
      if (cl.getArgs().length > 0)
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.