java.lang.Object
org.pqt.cloptions.Option
org.pqt.cloptions.FlagOption
- public class FlagOption
- extends Option
this class implements a command line option that is set simply by appearing on
the command line - so the option is not followed by a +/- to indicate the state
of the option
|
Field Summary |
boolean |
value
|
| Methods inherited from class org.pqt.cloptions.Option |
read |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public boolean value
FlagOption
public FlagOption(java.lang.String shortNames,
java.lang.String longNames)
doRead
public void doRead(OptionProcessor op)
- do nothing, simply set the value of the option to true
- Overrides:
doRead in class Option