Class Opt

java.lang.Object
net.sf.colossus.cmdline.Opt

public class Opt extends Object
Class Opt represents a single command-line option.
Author:
David Ripton
  • Field Details

    • optch

      private final char optch
    • name

      private final String name
    • hasarg

      private final boolean hasarg
    • help

      private final String help
  • Constructor Details

    • Opt

      public Opt(char optch, String name, boolean hasarg, String help)
  • Method Details

    • getOptch

      public char getOptch()
      short option name
    • getName

      public String getName()
      long option name
    • hasArg

      public boolean hasArg()
      whether the option takes an argument
    • getHelp

      public String getHelp()
      help string
    • toString

      public String toString()
      Overrides:
      toString in class Object