condor.classad
Class GetOpt.LongOption
java.lang.Object
|
+--condor.classad.GetOpt.LongOption
- Enclosing class:
- GetOpt
- public static class GetOpt.LongOption
- extends Object
A record used in a table of option descriptions passed to a constructor
of GetOpt. For example,
new LongOption("color", LongOption.REQ_ARG, 'c')
describes a an option invoked as "--color=red"
equivalent to the short option "-c red".
Method Summary |
String |
toString()
Convert this option into a printable string. |
name
public String name
- The option name (for example, "color")
hasArg
public int hasArg
- A flag, one of
GetOpt.NO_ARG
, GetOpt.REQ_ARG
, or GetOpt.OPT_ARG
val
public char val
- The equivalent short (one-char) option name (for example 'c')
GetOpt.LongOption
public GetOpt.LongOption(String name,
int hasArg,
char val)
- Create a LongOption from its components.
toString
public String toString()
- Convert this option into a printable string.
- Overrides:
toString
in class Object
- Returns:
- the string.