def parsestr(self, argstr):
argv = shlex.split(argstr, comments=True)<EOL>if len(argv) != <NUM_LIT:1>:<EOL><INDENT>raise BadNumberOfArguments(<NUM_LIT:1>, len(argv))<EOL><DEDENT>arg = argv[<NUM_LIT:0>]<EOL>lower = arg.lower()<EOL>if lower in self.true:<EOL><INDENT>return True<EOL><DEDENT>if lower in self.false:<EOL><INDENT>return False<EOL><DEDENT>raise BadArgument(arg, "<STR_LIT>" + self.allowed + '<STR_LIT:.>')<EOL>
Parse arguments found in settings files.

        Use the values in self.true for True in settings files, or those in 
        self.false for False, case insensitive.