Class CommandLineParser

    • Constructor Detail

      • CommandLineParser

        public CommandLineParser​(boolean handleConcatenatedOptions)
    • Method Detail

      • handleConcatenatedOptions

        protected void handleConcatenatedOptions​(String token)
                                          throws ParseException
        Description copied from class: DefaultParser
        Breaks token into its constituent parts using the following algorithm.
        • ignore the first character ("-")
        • foreach remaining character check if an Option exists with that id.
        • if an Option does exist then add that character prepended with "-" to the list of processed tokens.
        • if the Option can have an argument value and there are remaining characters in the token then add the remaining characters as a token to the list of processed tokens.
        • if an Option does NOT exist AND stopAtNonOption IS set then add the special token "--" followed by the remaining characters and also the remaining tokens directly to the processed tokens list.
        • if an Option does NOT exist AND stopAtNonOption IS NOT set then add that character prepended with "-".
        Overrides:
        handleConcatenatedOptions in class DefaultParser
        Parameters:
        token - The current token to be burst at the first non-Option encountered.
        Throws:
        ParseException - if there are any problems encountered while parsing the command line token.