CommandResolver.resolveAndAdvance

Peforms the same task as CommandResolver.resolve, except that it will also advance the given parser to the next unparsed argument.

Description: For example, you've defined "set verbose" as a command, and you pass in an ArgPullParser(["set", "verbose", "true"]).

This function will match with the "set verbose" sentence, and will advance the parser so that it will now be ArgPullParser(["true"]), ready for your application code to perform additional processing (e.g. arguments).

class CommandResolver(UserDataT)
resolveAndAdvance

Parameters

parser ArgPullParser

The ArgPullParser to use and advance.

Return Value

Type: CommandResolveResult!UserDataT

Same thing as CommandResolver.resolve.

Meta