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.user.UserCertAddCLI.java

public void createOptions() {
    Option option = new Option(null, "input", true, "Input file");
    option.setArgName("file");
    options.addOption(option);//www.j a  v a 2  s  .c o  m

    option = new Option(null, "serial", true, "Serial number of certificate in CA");
    option.setArgName("serial number");
    options.addOption(option);
}

From source file:com.netscape.cmstools.ca.CACertHoldCLI.java

public void createOptions() {
    Option option = new Option(null, "comments", true, "Comments");
    option.setArgName("comments");
    options.addOption(option);/*from   ww w  . ja  va 2s  .c om*/

    options.addOption(null, "force", false, "Force");
}

From source file:com.netscape.cmstools.user.UserModifyCLI.java

public void createOptions() {
    Option option = new Option(null, "fullName", true, "Full name");
    option.setArgName("fullName");
    options.addOption(option);//from w  w w .  j a va 2  s . com

    option = new Option(null, "email", true, "Email");
    option.setArgName("email");
    options.addOption(option);

    option = new Option(null, "password", true, "Password");
    option.setArgName("password");
    options.addOption(option);

    option = new Option(null, "phone", true, "Phone");
    option.setArgName("phone");
    options.addOption(option);

    // type cannot be modified
    // option = new Option(null, "type", true, "Type");
    // option.setArgName("type");
    // options.addOption(option);

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

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

public void createOptions() {
    Option option = new Option(null, "input", true, "Input file containing authenticator properties.");
    option.setArgName("file");
    option.setRequired(true);// ww w. j av  a2  s.  c  o  m
    options.addOption(option);
}

From source file:com.medvision360.medrecord.tools.dumpadl.CommandLineReader.java

/**
 * Constructor./*from   w  w  w .  jav  a  2s.  com*/
 * <p/>
 * Creates the commandline options.
 */
public CommandLineReader() {
    super();

    m_options = new Options();

    final Option adlOption = new Option("i", "adl", true, "The ADL file to parse.");
    adlOption.setRequired(true);
    adlOption.setArgName("adl-file");
    m_options.addOption(adlOption);
}

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

public void createOptions() {
    Option option = new Option(null, "input", true, "Input file containing profile mapping properties.");
    option.setArgName("file");
    option.setRequired(true);/*from  w  ww. j a v a 2  s .com*/
    options.addOption(option);
}

From source file:kieker.tools.loggingTimestampConverter.LoggingTimestampConverterTool.java

@Override
protected void addAdditionalOptions(final Options options) {
    final Option option = new Option(FLAG_TIMESTAMPS_PARAMETER, "timestamps", true,
            "List of timestamps (UTC timezone) to convert");
    option.setArgName("timestamp1 ... timestampN");
    option.setRequired(false);// w  w  w  .java2  s .c  om
    option.setArgs(Option.UNLIMITED_VALUES);

    options.addOption(option);
}

From source file:com.geeksaga.light.console.Main.java

private Options getOptions() {
    Option bootStrapOption = new Option("b", "bootstrap", true, "library append to class loader of bootstrap");
    bootStrapOption.setArgs(Option.UNLIMITED_VALUES);
    bootStrapOption.setArgName("library path");

    Option attachOption = new Option("a", "attach", true, "attach java process");
    attachOption.setArgs(Option.UNLIMITED_VALUES);
    attachOption.setArgName("process ID");

    Option processOption = new Option("p", "process", false, "find java process");

    Options options = new Options();
    options.addOption(bootStrapOption);/*from w ww .j av  a2 s. c o  m*/
    options.addOption(attachOption);
    options.addOption(processOption);

    return options;
}

From source file:com.google.enterprise.connector.encryptpassword.EncryptPassword.java

@Override
public Options getOptions() {
    Options options = super.getOptions();
    Option option = new Option("p", "password", true, "Encrypt the supplied password.");
    option.setArgName("password");
    options.addOption(option);//w ww. j  a  va 2 s. co  m
    return options;
}

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

public void createOptions() {
    Option option = new Option(null, "token", true, "Token ID");
    option.setArgName("token ID");
    options.addOption(option);/*from   w  w  w  . jav  a  2  s. co m*/

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

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

    option = new Option(null, "status", true, "Token status");
    option.setArgName("status");
    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);
}