Class CommandLineOptionsParser


  • public class CommandLineOptionsParser
    extends java.lang.Object
    Parses for options (passed in as arguments) To use add entries to CommandLineOptions enum in CommandLineOptions and make a static method return a list containing what CommandLineOptions are to be parsed for.
    • Field Detail

      • mainArgumentList

        private final java.util.List<java.lang.String> mainArgumentList
    • Method Detail

      • mainArgExists

        public boolean mainArgExists()
      • getMainArg

        public java.lang.String getMainArg()
      • getMainArgs

        public java.util.List<java.lang.String> getMainArgs()
      • getParams

        public java.util.List<java.lang.String> getParams​(CommandLineOptions option)
      • getNumberOfOptions

        @Deprecated
        public int getNumberOfOptions()
        Deprecated.
      • handleEvenNumberSupportingEqualsChar

        private void handleEvenNumberSupportingEqualsChar​(ParsedCommandLineOption lastOption,
                                                          java.lang.String arg)
      • isEvenNumberSupportingEqualsChars

        private boolean isEvenNumberSupportingEqualsChars​(ParsedCommandLineOption lastOption)
      • argumentToOption

        private CommandLineOptions argumentToOption​(java.lang.String arg)
      • isOption

        private boolean isOption​(java.lang.String input)
      • stringEqualsOption

        public static boolean stringEqualsOption​(java.lang.String input,
                                                 CommandLineOptions opt)
      • removeLeadingHyphens

        private static java.lang.String removeLeadingHyphens​(java.lang.String input)