def METHOD_NAME(self, char):
    if char == "h":
        self.parsed.help = True
        self.end_early = True
        return
    if char == "g":
        self.parsed.gui = True
        return
    self.error("Unrecognized option: -{}".format(char))