|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.charliedog.argv.BooleanArgument
A Boolean argument for use with ArgumentParser. It is false unless the flag is found in the command line, in which case it is true.
| Constructor Summary | |
BooleanArgument(java.lang.String flag,
java.lang.String description)
Construct a new boolean argument with the given flag and description. |
|
| Method Summary | |
boolean |
getValue()
Returns the boolean value of this argument. |
int |
parse(java.util.List values)
Parsing method invoked by ArgumentParser. |
void |
printUsage(java.io.PrintWriter out)
Usage method invoked by ArgumentParser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BooleanArgument(java.lang.String flag,
java.lang.String description)
| Method Detail |
public boolean getValue()
public int parse(java.util.List values)
parse in interface Argumentpublic void printUsage(java.io.PrintWriter out)
printUsage in interface Argument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||