code: def parsestr(self, argsstr, usedname, location):
          
          try:
              value = self.format.parsestr(argsstr)
          except formats.BadNumberOfArguments, e:
              raise BadNumberOfArguments(usedname, e.required, e.supplied)
          except formats.BadArgument, e:
              raise BadArgument(usedname, e.argument, e.message)
          if self.recurring:
              self.value.append(value)
          else:
              self.value = value
          self.location = location
docs: Parse a string lexically and store the result.
          ARGS:
          argsstr <str>:
              The string to parse.
          usedname <str>:
              The string used by the user to invoke the option.
          location <str>:
              A user friendly sring describing where the parser got this
              data from.