def evalOptions(self, root, parsed, unparsed):
logger.debug("<STR_LIT>", root.node, parsed, unparsed)<EOL>suggestions = dict()<EOL>token = unparsed.pop().strip()<EOL>parts = token.partition('<STR_LIT:=>')<EOL>if parts[-<NUM_LIT:1>] != '<STR_LIT>':  <EOL><INDENT>token = parts[<NUM_LIT:0>]<EOL><DEDENT>allFlags = root.localFlags + self.globalFlags<EOL>for flag in allFlags:<EOL><INDENT>if flag.name == token:<EOL><INDENT>logger.debug("<STR_LIT>", token, flag.name)<EOL>parsed.append(token)<EOL>if self.peekForOption(unparsed):  <EOL><INDENT>parsed, unparsed, suggestions = self.evalOptions(root, parsed, unparsed[:])<EOL><DEDENT>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>for flag in allFlags:<EOL><INDENT>suggestions[flag.name] = flag.helptext<EOL><DEDENT><DEDENT>if suggestions:  <EOL><INDENT>logger.debug("<STR_LIT>", token)<EOL>unparsed.append(token)<EOL><DEDENT>return parsed, unparsed, suggestions<EOL>
Evaluate only the options and return flags as suggestions