List of usage examples for org.apache.commons.cli Option setArgName
public void setArgName(String argName)
From source file:com.netscape.cmstools.pkcs7.PKCS7CertExportCLI.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 . j a v a 2 s . c o m*/ option = new Option(null, "output-prefix", true, "Prefix for output file"); option.setArgName("string"); options.addOption(option); option = new Option(null, "output-suffix", true, "Suffix for output file"); option.setArgName("string"); 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.tps.config.ConfigModifyCLI.java
public void createOptions() { Option option = new Option(null, "input", true, "Input file containing general properties."); option.setArgName("file"); option.setRequired(true);/*w w w .ja va 2 s . co m*/ options.addOption(option); option = new Option(null, "output", true, "Output file to store general properties."); option.setArgName("file"); options.addOption(option); }
From source file:com.netscape.cmstools.logging.AuditModifyCLI.java
public void createOptions() { Option option = new Option(null, "action", true, "Action: enable, disable."); option.setArgName("action"); options.addOption(option);//from w w w.j av a 2 s . c o m option = new Option(null, "input", true, "Input file containing audit configuration."); option.setArgName("file"); options.addOption(option); option = new Option(null, "output", true, "Output file to store audit configuration."); option.setArgName("file"); options.addOption(option); }
From source file:com.netscape.cmstools.pkcs12.PKCS12ImportCLI.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 . 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, "no-trust-flags", false, "Do not include trust flags"); options.addOption(null, "overwrite", false, "Overwrite existing certificates"); 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.ca.CACertStatusCLI.java
public void createOptions() { Option option = new Option(null, "ocsp", true, "OCSP URL"); option.setArgName("URL"); options.addOption(option);// w ww . j a va 2s. c o m options.addOption("v", "verbose", false, "Run in verbose mode."); options.addOption(null, "help", false, "Show help message."); }
From source file:com.netscape.cmstools.key.KeyModifyCLI.java
public void createOptions() { Option option = new Option(null, "status", true, "Status of the key.\nValid values: active, inactive"); option.setRequired(true);//from w ww . j a v a2 s.c om option.setArgName("status"); options.addOption(option); }
From source file:com.netscape.cmstools.pkcs12.PKCS12CertFindCLI.java
public void createOptions() { Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file"); option.setArgName("path"); options.addOption(option);// ww w . j a va 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("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:de.thischwa.pmcms.tool.CliParser.java
private void buildOptions() { Option help = new Option("help", "print this message"); Option admin = new Option("admin", "start poormans in the admin mode"); Option cleanUp = new Option("cleanup", "clean up the settings and site data, all data will be deleted !!!"); Option dataDir = new Option("datadir", true, "full path of the data directory (will ignored if 'portable' is set)"); dataDir.setArgName("path"); Option debug = new Option("debug", "print out debug statements on stdout while starting"); Option portable = new Option("portable", "for running on a portable device"); options = new Options(); options.addOption(help);/*from ww w. j a v a 2 s . c o m*/ options.addOption(admin); options.addOption(cleanUp); options.addOption(dataDir); options.addOption(debug); options.addOption(portable); }
From source file:fr.inrialpes.exmo.align.cli.CommonCLI.java
protected Option createListOption(String name, String longName, String desc, String argName, char sep) { Option opt = createOption(name, longName, desc); opt.setArgName(argName); opt.setValueSeparator(sep);//from w ww . java 2s . com opt.setRequired(true); opt.setArgs(-2); // Nicely undocumented! return opt; }
From source file:com.netscape.cmstools.kra.KRAKeyRequestFindCLI.java
public void createOptions() { Option option = new Option(null, "status", true, "Request status"); option.setArgName("status"); options.addOption(option);/*from www. j av a2s . com*/ 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); option = new Option(null, "realm", true, "Authorization Realm"); option.setArgName("realm"); options.addOption(option); }