com.darwinsys.lang
Class GetOptDesc

java.lang.Object
  extended bycom.darwinsys.lang.GetOptDesc

public class GetOptDesc
extends java.lang.Object

A GetOptDesc describes one argument that may be accepted by the program.


Field Summary
protected  char argLetter
          The short-form option letter
protected  java.lang.String argName
          The long-form option name
protected  boolean takesArgument
          True if this option needs an argument after it
 
Constructor Summary
GetOptDesc(char ch, java.lang.String nm, boolean ta)
          Construct a GetOpt option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

argLetter

protected char argLetter
The short-form option letter


argName

protected java.lang.String argName
The long-form option name


takesArgument

protected boolean takesArgument
True if this option needs an argument after it

Constructor Detail

GetOptDesc

public GetOptDesc(char ch,
                  java.lang.String nm,
                  boolean ta)
Construct a GetOpt option.

Parameters:
ch - The single-character name for this option.
nm - The word name for this option.
ta - True if this option requires an argument after it.


Copyright © 2000-2003 Ian F. Darwin. See license.html for usage license.