Class OptionSpec


  • public class OptionSpec
    extends Object
    Specifes the syntax for a single option on a command line. ToDo:
     - add syntax pattern parsing
          Syntax patterns are similar to Java type signatures
      F - float
      I - int
      L - long
      S - string
      B - boolean
      + - one or more
     eg:  "FIS+" takes a double, int, and one or more Strings
     
    • Constructor Detail

      • OptionSpec

        public OptionSpec​(String optName)
      • OptionSpec

        public OptionSpec​(String optName,
                          int nAllowed)
      • OptionSpec

        public OptionSpec​(String optName,
                          String _syntaxPattern)
    • Method Detail

      • setDoc

        public void setDoc​(String _argDoc,
                           String docLine)
      • getArgDesc

        public String getArgDesc()
      • getDocDesc

        public String getDocDesc()
      • getNumOptions

        public int getNumOptions()
      • getOption

        public Option getOption​(int i)
      • getOptions

        public Iterator getOptions()
      • hasOption

        public boolean hasOption()