The following features are supported:
Option
class represents an option that has been given on the command line. The inner classes represent specific types of options such as integers, booleans, and strings.
@author Ben L. Titzer
@see Options
0 1 2 3 4 5 6 7 +---+---+---+---+---+---+---+---+ | | NoCacheKey| U | C | +---+---+---+---+---+---+---+---+
Critical = (onum & 1); UnSafe = (onum & 2); NoCacheKey = ((onum & 0x1e) == 0x1c);
-e foo@example.comA long option is prefixed by a double dash ("--"), and its value is specified with an equals sign ("="). For example,
--email=foo@example.comFlag-style {@code Options} have no specified value, and imply their meaning by merepresence. For example,
--append (Forces appending to an existing file)
Describes a single command-line option. It maintains information regarding the short-name of the option, the long-name, if any exists, a flag indicating if an argument is required for this option, and a self-documenting description of the option.
An Option is not created independantly, but is create through an instance of {@link Options}.
@see org.apache.commons.cli.Options @see org.apache.commons.cli.CommandLine @author bob mcwhirter (bob @ werken.com) @author James Strachan @version $Revision: 551821 $
This class creates a <Option> tag.
The Option tag now defaults to having a closing </Option> (as is now required). This can be overridden by setNeedClosingTag(false).
This change means that you should construct select options element in the following manner:
rather than new org.apache.ecs.html.Select .addElement(new option("value1").addElement("text1")) .addElement(new option("value2").addElement("text2"))
(this change should not break existing code too badly since browsers generally display the output from the above correctly). new org.apache.ecs.html.Select .addElement(new option("value1").addElement("text1") .addElement(new option("value2").addElement("text2")))
Alternatively, you could use the new option constructor and do something like
or even new org.apache.ecs.html.Select .addElement(new option("text1","value1","text1")) .addElement(new option("text2","value2","text2"))
new org.apache.ecs.html.Select .appendOption("text1","value1","text1") .appendOption("text2","value2","text2")
@version $Id: Option.java,v 1.6 2003/04/27 09:22:12 rdonkin Exp $ @author Stephan Nagy @author Jon S. Stevens
Typical usage:
Option myOption = new Option("Uses extended mode.", "E", 0, "-E"));
@author Eibe Frank (eibe@cs.waikato.ac.nz) @version $Revision: 1.6 $
@author Luis Pereira
Typical usage:
Option myOption = new Option("Uses extended mode.", "E", 0, "-E"));
@author Eibe Frank (eibe@cs.waikato.ac.nz) @version $Revision: 1.7 $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|