Fluent factory method for constructing and returning a new instance with specified propert name. Note that this method should NOT change configuration of this instance.
@param newName Name to use for the new instance.
@return Newly constructed instance, if property name differs from theone used for this instance; or 'this' if not.
Sets the name of the argument. The name is used when displaying usage information and to allow lookups in the CommandLine object.
@see org.apache.commons.cli2.CommandLine#getValue(String)
@param newName the name of the argument
@return this ArgumentBuilder
Specifies the name for the next Command that is created. The first name is used as the preferred display name for the Command and then later names are used as aliases.
@param name the name for the next Commandthat is created.
@return this CommandBuilder.
withDescription("The number of docs to include in each indexing batch").withShortName("b").create();
Group group = gbuilder.withName("Options").withOption(wikipediaFileOpt).withOption(numDocsOpt).withOption(solrURLOpt).withOption(solrBatchOpt).create();
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.