(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
True if there are more tokens, false otherwise
True if there are more tokens, false otherwise
Returns the current token, or a failure if one was encountered.
Returns the current token, or a failure if one was encountered. Does not move to the next token.
Returns the next token, or a failure if one was encountered.
Returns the next token, or a failure if one was encountered.
Returns any remaining args that were not tokenized.
Returns any remaining args that were not tokenized. This is a destructive operation, so should only be called once.
(argTokenizer: MonadOps[Try[Token]]).filter(p)
(argTokenizer: MonadOps[Try[Token]]).flatMap(f)
(argTokenizer: MonadOps[Try[Token]]).map(f)
(argTokenizer: MonadOps[Try[Token]]).withFilter(p)
A class to tokenize a sequence of strings prior to option parsing. A series of tokens will be available. If any errors are encountered, a failure will be present instead of the token.