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.key.KeyRequestFindCLI.java

public void createOptions() {
    Option option = new Option(null, "status", true, "Request status");
    option.setArgName("status");
    options.addOption(option);/*w w  w.j a  v  a 2 s .  c  o m*/

    option = new Option(null, "type", true, "Request type");
    option.setArgName("type");
    options.addOption(option);

    option = new Option(null, "client", true, "Client ID");
    option.setArgName("client ID");
    options.addOption(option);

    option = new Option(null, "maxResults", true, "Maximum results");
    option.setArgName("max results");
    options.addOption(option);

    option = new Option(null, "maxTime", true, "Maximum time");
    option.setArgName("max time");
    options.addOption(option);

    option = new Option(null, "start", true, "Page to start");
    option.setArgName("starting page");
    options.addOption(option);

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

From source file:com.netscape.cmstools.pkcs12.PKCS12CertModCLI.java

public void createOptions() {
    Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
    option.setArgName("path");
    options.addOption(option);/*from w w  w  .j a va  2 s.c  o m*/

    option = new Option(null, "pkcs12-password", true, "PKCS #12 password");
    option.setArgName("password");
    options.addOption(option);

    option = new Option(null, "pkcs12-password-file", true, "PKCS #12 password file");
    option.setArgName("path");
    options.addOption(option);

    option = new Option(null, "trust-flags", true, "Certificate trust flags");
    option.setArgName("flags");
    options.addOption(option);

    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.kra.KRAKeyFindCLI.java

public void createOptions() {
    Option option = new Option(null, "clientKeyID", true, "Unique client key identifier");
    option.setArgName("client key ID");
    options.addOption(option);//  www . ja v a 2  s .c  o  m

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

    option = new Option(null, "maxResults", true, "Maximum results");
    option.setArgName("max results");
    options.addOption(option);

    option = new Option(null, "maxTime", true, "Maximum time");
    option.setArgName("max time");
    options.addOption(option);

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

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

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

From source file:com.netscape.cmstools.pkcs12.PKCS12CertAddCLI.java

public void createOptions() {
    Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
    option.setArgName("path");
    options.addOption(option);//from  www .j  ava 2 s . co m

    option = new Option(null, "pkcs12-password", true, "PKCS #12 password");
    option.setArgName("password");
    options.addOption(option);

    option = new Option(null, "pkcs12-password-file", true, "PKCS #12 password file");
    option.setArgName("path");
    options.addOption(option);

    options.addOption(null, "new-file", false, "Create a new PKCS #12 file");
    options.addOption(null, "no-trust-flags", false, "Do not include trust flags");
    options.addOption(null, "no-key", false, "Do not include private key");
    options.addOption(null, "no-chain", false, "Do not include certificate chain");

    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.key.KeyFindCLI.java

public void createOptions() {
    Option option = new Option(null, "clientKeyID", true, "Unique client key identifier");
    option.setArgName("client key ID");
    options.addOption(option);//w  w  w .  ja va  2 s . c  o  m

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

    option = new Option(null, "maxResults", true, "Maximum results");
    option.setArgName("max results");
    options.addOption(option);

    option = new Option(null, "maxTime", true, "Maximum time");
    option.setArgName("max time");
    options.addOption(option);

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

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

From source file:com.netscape.cmstools.tps.authenticator.AuthenticatorModifyCLI.java

public void createOptions() {
    Option option = new Option(null, "action", true,
            "Action: update (default), approve, reject, enable, disable.");
    option.setArgName("action");
    options.addOption(option);/*w w w.j av  a2 s .c  o m*/

    option = new Option(null, "input", true, "Input file containing authenticator properties.");
    option.setArgName("file");
    options.addOption(option);
}

From source file:com.netscape.cmstools.tps.connector.ConnectorModifyCLI.java

public void createOptions() {
    Option option = new Option(null, "action", true,
            "Action: update (default), approve, reject, enable, disable.");
    option.setArgName("action");
    options.addOption(option);/*from   w ww. j av a 2  s .  com*/

    option = new Option(null, "input", true, "Input file containing connector properties.");
    option.setArgName("file");
    options.addOption(option);
}

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

public void createOptions() {
    Option option = new Option(null, "action", true,
            "Action: update (default), approve, reject, enable, disable.");
    option.setArgName("action");
    options.addOption(option);/*from   w ww . j  a v a  2 s .c  o  m*/

    option = new Option(null, "input", true, "Input file containing profile mapping properties.");
    option.setArgName("file");
    options.addOption(option);
}

From source file:com.trackplus.tools.DBConnectionTester.java

private Option newOption(String shortOption, String description, String longOption, String argumentName) {
    Option option = new Option(shortOption, description);
    option.setLongOpt(longOption);/*from  w  w  w  .  j a  v a 2 s.  c o m*/
    option.setArgs(1);
    option.setArgName(argumentName);

    return option;
}

From source file:fr.inrialpes.exmo.align.cli.CommonCLI.java

protected Option createRequiredOption(String name, String longName, String desc, String argName) {
    Option opt = createOption(name, longName, desc);
    opt.setArgs(1);//from  ww w  . j  a  v  a2 s.  c om
    opt.setArgName(argName);
    return opt;
}