def arguments(self): """Parse *self["data"]* into a list of arguments using :func:`~csbot.util.parse_arguments`. This might raise a :exc:`~exceptions.ValueError` if the string cannot be parsed, e.g. if there are unmatched quotes. """ return parse_arguments(self['data'])
def arguments(self): """Parse *self["data"]* into a list of arguments using :func:`~csbot.util.parse_arguments`. This might raise a :exc:`~exceptions.ValueError` if the string cannot be parsed, e.g. if there are unmatched quotes. """ return parse_arguments(self["data"])
def data(self): """Command data as an argument list, using :func:`.util.parse_arguments`. The parsed argument list is cached on first use so repeatedly accessing elements of this attribute is cheap. If :attr:`raw_data` couldn't be parsed then accessing this attribute might raise a :exc:`~exceptions.ValueError`. """ if self.data_ is None: try: self.data_ = parse_arguments(self.raw_data) except ValueError as e: self.error('Unmatched quotation marks') raise e return self.data_