/** * Create an Option using the current settings * * @return the Option instance * * @throws IllegalArgumentException if <code>longOpt</code> has not been set. */ public Option create() throws IllegalArgumentException { if (longopt == null) { throw new IllegalArgumentException("must specify longopt"); } return create(null); }
/** * Create an Option using the current settings and with * the specified Option <code>char</code>. * * @param opt the character representation of the Option * * @return the Option instance * * @throws IllegalArgumentException if <code>opt</code> is not * a valid character. See Option. */ public Option create(char opt) throws IllegalArgumentException { return create(String.valueOf(opt)); }
/** * Create an Option using the current settings * * @return the Option instance * * @throws IllegalArgumentException if <code>longOpt</code> has not been set. */ public Option create() throws IllegalArgumentException { if (longopt == null) { throw new IllegalArgumentException("must specify longopt"); } return create(null); }
/** * Create an Option using the current settings and with * the specified Option <code>char</code>. * * @param opt the character representation of the Option * * @return the Option instance * * @throws IllegalArgumentException if <code>opt</code> is not * a valid character. See Option. */ public Option create(char opt) throws IllegalArgumentException { return create(String.valueOf(opt)); }
.withLongOpt("output") .withDescription("corpus output directory (existing data will be lost)") .create("o"));
.withLongOpt("output") .withDescription("corpus output directory (existing data will be lost)") .create("o"));
.withLongOpt("analyzer") .withDescription("the name of the phrase analyzer to use") .create("p")); EnvBuilder.addStandardOptions(options);
.withLongOpt("analyzer") .withDescription("the name of the phrase analyzer to use") .create("p")); EnvBuilder.addStandardOptions(options);
.withLongOpt("conf") .withDescription("configuration file") .create("c"), new DefaultOptionBuilder() .hasArg() .withLongOpt("threads") .withDescription("the maximum number of threads that should be used") .create("h"), new DefaultOptionBuilder() .hasArg() .withLongOpt("languages") .withDescription("the set of languages to process, separated by commas or 'LOADED'") .create("l"), new DefaultOptionBuilder() .hasArg() .withLongOpt("base-dir") .withDescription("the base directory used to resolve relative directories") .create(), new DefaultOptionBuilder() .hasArg() .withLongOpt("tmp-dir") .withDescription("the temporary directory") .create() }; for (Option o : toAdd) {
.withLongOpt("drop-tables") .withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);
.withLongOpt("drop-tables") .withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);
.withLongOpt("drop-tables") .withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);
.withLongOpt("drop-tables") .withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);