Class StandardOptionParser<T>

All Implemented Interfaces:
OptionParser<T>

public class StandardOptionParser<T> extends AbstractOptionParser<T>
An options parser that expects the name and value(s) to be white space separated e.g. --name value
  • Constructor Details

    • StandardOptionParser

      public StandardOptionParser()
  • Method Details

    • parseOptions

      public ParseState<T> parseOptions(org.apache.commons.collections4.iterators.PeekingIterator<String> tokens, ParseState<T> state, List<OptionMetadata> allowedOptions)
      Description copied from interface: OptionParser
      Parses one/more options from the token stream
      Parameters:
      tokens - Tokens
      state - Current parser state
      allowedOptions - Allowed options at this point of the parsing
      Returns:
      New parser state, may return null if this parser could not parse the next token as an option