Class CommandOption.List

  • Enclosing class:

    public static class CommandOption.List
    extends java.lang.Object
    • Constructor Detail

      • List

        public List​(java.lang.String summary,
                    CommandOption[] options)
    • Method Detail

      • setSummary

        public void setSummary​(java.lang.String s)
      • size

        public int size()
      • getCommandOption

        public CommandOption getCommandOption​(int index)
      • add

        public void add​(java.lang.Class owner)
      • readFromFile

        public void readFromFile​( configurationFile)
        Load configuration information from a file. If the filename ends with ".xml", the file is interpreted as a Java XML configuration file. Otherwise it is interpreted as a text config file (eg "key = value" on each line). Note that text files can only use Latin 1 (en-us) characters, while XML files can be UTF-8.
      • process

        public java.lang.String[] process​(java.lang.String[] args)
        Parse and process command-line options in args. Return sub-array of args occurring after first non-recognized arg that doesn't begin with a dash.
      • processOptions

        public int processOptions​(java.lang.String[] args)
      • printUsage

        public void printUsage​(boolean printLongDoc)
      • logOptions

        public void logOptions​(java.util.logging.Logger logger)