Package org.apache.commons.cli2.builder

Examples of org.apache.commons.cli2.builder.DefaultOptionBuilder.create()


    DefaultOptionBuilder dob = builder.withShortName(shortName).withArgument(arg).withDescription(desc);

    if (longName != null) {
      dob = dob.withLongName(longName);
    }
    return dob.create();
  }

  private static void validatePermissions(CliSessionState ss, HiveConf conf, String perms) {
    perms = perms.trim();
    FsPermission fp = null;
View Full Code Here


    if (longName != null) {
      dob = dob.withLongName(longName);
    }

    return dob.create();
  }

  public OptionsProcessor() {
    DefaultOptionBuilder builder = new DefaultOptionBuilder("-", "-", false);
View Full Code Here

      }

      optBuilder.withArgument(argBuilder.create());
    }

    return optBuilder.create();
  }

  /** Parse the arguments specified based on the options defined using the
   *  various <code>addOption</code> methods. If -h is specified or an
   *  exception is encountered print help and return null. Has the
View Full Code Here

      }

      optBuilder.withArgument(argBuilder.create());
    }

    return optBuilder.create();
  }
  //convenience method

  /**
   *
 
View Full Code Here

    if (longName != null) {
      dob = dob.withLongName(longName);
    }

    return dob.create();
  }

  public OptionsProcessor() {
    DefaultOptionBuilder builder = new DefaultOptionBuilder("-", "-", false);
View Full Code Here

      }

      optBuilder.withArgument(argBuilder.create());
    }

    return optBuilder.create();
  }

  /**
   * @param name The name of the option
   * @return the {@link org.apache.commons.cli2.Option} with the name, else null
View Full Code Here

      withDescription(desc);

    if(longName != null)
      dob = dob.withLongName(longName);

    return dob.create();
  }


  public OptionsProcessor() {
    DefaultOptionBuilder builder =
View Full Code Here

            }

            optBuilder.withArgument(argBuilder.create());
        }

        return optBuilder.create();
    }

}
View Full Code Here

      }

      optBuilder.withArgument(argBuilder.create());
    }

    return optBuilder.create();
  }

  /** Parse the arguments specified based on the options defined using the
   *  various {@code addOption} methods. If -h is specified or an
   *  exception is encountered print help and return null. Has the
View Full Code Here

      }

      optBuilder.withArgument(argBuilder.create());
    }

    return optBuilder.create();
  }

  /**
   * @param name The name of the option
   * @return the {@link org.apache.commons.cli2.Option} with the name, else null
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.