Example usage for org.apache.commons.cli Option setArgName

List of usage examples for org.apache.commons.cli Option setArgName

Introduction

In this page you can find the example usage for org.apache.commons.cli Option setArgName.

Prototype

public void setArgName(String argName) 

Source Link

Document

Sets the display name for the argument value.

Usage

From source file:com.netscape.cmstools.group.GroupFindCLI.java

public void createOptions() {
    Option option = new Option(null, "start", true, "Page start");
    option.setArgName("start");
    options.addOption(option);/*from w  ww.  j  a  v  a 2  s .  c om*/

    option = new Option(null, "size", true, "Page size");
    option.setArgName("size");
    options.addOption(option);
}

From source file:com.netscape.cmstools.client.ClientCertModifyCLI.java

public void createOptions() {
    Option option = new Option(null, "trust", true, "Trust attributes. Default: u,u,u.");
    option.setArgName("trust attributes");
    options.addOption(option);//from w ww.  j  a  v  a2  s  .c  o m
}

From source file:com.google.enterprise.connector.importexport.DumpConnectors.java

@Override
public Options getOptions() {
    Options options = super.getOptions();
    options.addOption("l", "list", false, "List available connectors.");
    Option o = new Option("c", "connector_name", true, "Connector to export.");
    o.setArgName("connector_name");
    options.addOption(o);/*from ww  w . j a  v  a  2  s. c om*/
    return options;
}

From source file:com.netscape.cmstools.key.KeyShowCLI.java

public void createOptions() {
    Option option = new Option(null, "clientKeyID", true, "Unique client key identifier.");
    option.setArgName("Client Key Identifier");
    options.addOption(option);//from w w  w . j a  v  a 2 s . c o m
}

From source file:edu.vt.middleware.crypt.digest.DigestCli.java

/** {@inheritDoc} */
protected void initOptions() {
    super.initOptions();

    final Option algorithm = new Option(OPT_ALG, true, "digest algorithm name");
    algorithm.setArgName("name");
    algorithm.setOptionalArg(false);//from www  .  jav  a 2s .co m

    final Option salt = new Option(OPT_SALT, true, "initialize digest with salt before hashing data");
    salt.setArgName("hex_salt");
    salt.setOptionalArg(false);

    final Option infile = new Option(OPT_INFILE, true, "file to digest; defaults to STDIN");
    infile.setArgName("filepath");
    infile.setOptionalArg(false);

    final Option encoding = new Option(OPT_ENCODING, true, "output encoding format, either hex or base64");
    encoding.setArgName("encoding");
    encoding.setOptionalArg(false);

    options.addOption(algorithm);
    options.addOption(salt);
    options.addOption(infile);
    options.addOption(encoding);
}

From source file:com.netscape.cmstools.pkcs7.PKCS7CertFindCLI.java

public void createOptions() {
    Option option = new Option(null, "pkcs7-file", true, "PKCS #7 file");
    option.setArgName("path");
    options.addOption(option);//from  w w w. java2 s.co  m

    options.addOption("v", "verbose", false, "Run in verbose mode.");
    options.addOption(null, "debug", false, "Run in debug mode.");
    options.addOption(null, "help", false, "Show help message.");
}

From source file:com.netscape.cmstools.tps.config.ConfigShowCLI.java

public void createOptions() {
    Option option = new Option(null, "output", true, "Output file to store general properties.");
    option.setArgName("file");
    options.addOption(option);//from  ww  w.j a  va  2  s  .  co  m
}

From source file:com.netscape.cmstools.logging.AuditShowCLI.java

public void createOptions() {
    Option option = new Option(null, "output", true, "Output file to store audit configuration.");
    option.setArgName("file");
    options.addOption(option);/*w w w .  j  a v  a 2  s .  c o m*/
}

From source file:com.netscape.cmstools.tps.profile.ProfileShowCLI.java

public void createOptions() {
    Option option = new Option(null, "output", true, "Output file to store profile properties.");
    option.setArgName("file");
    options.addOption(option);/*w  w  w.  j  a v a2s.co m*/
}

From source file:com.netscape.cmstools.tps.token.TokenModifyCLI.java

public void createOptions() {
    Option option = new Option(null, "user", true, "User ID");
    option.setArgName("User ID");
    options.addOption(option);//from   w  ww .j a  v a  2s  .  c om

    option = new Option(null, "policy", true, "Policy");
    option.setArgName("Policy");
    options.addOption(option);

    option = new Option(null, "status", true, "Status");
    option.setArgName("Status");
    options.addOption(option);
}