def _parse_simple_func(self, args):
    '\n        Process the given arguments into a simple function definition\n\n        :param args: List of the words after the "com" command\n        :return: Function name, if it wants the caller\'s user name,\n                 the required user level, and the function\'s Lua code\n        :raise argparse.ArgumentError: There was something wrong with the args\n        '
    parser = ArgumentParser()
    parser.add_argument('-ul', '--user_level', default='mod')
    parser.add_argument('-c', '--cooldown', default=None)
    parser.add_argument('func_name')
    parser.add_argument('response_text', nargs='*')
    options = parser.parse_args(args)
    response_text = ' '.join(options.response_text)
    response_text = response_text.replace('\\', '\\\\')
    response_text = response_text.replace('"', '\\"')
    func_body = u'\n        return SimpleCom("{response_text}", user, table.pack(...))\n        '.format(response_text=response_text)
    code = self.func_template.format(func_name=options.func_name, args='user,...', func_body=func_body)
    flags = {'want_user': 1, 'quoted': 0, 'cooldown': (int(options.cooldown) if options.cooldown else None)}
    added = bool(options.response_text)
    return (added, options.func_name, flags, options.user_level, code)
Process the given arguments into a simple function definition

:param args: List of the words after the "com" command
:return: Function name, if it wants the caller's user name,
         the required user level, and the function's Lua code
:raise argparse.ArgumentError: There was something wrong with the args
def _parse_simple_func(self, args):
    '\n        Process the given arguments into a simple function definition\n\n        :param args: List of the words after the "com" command\n        :return: Function name, if it wants the caller\'s user name,\n                 the required user level, and the function\'s Lua code\n        :raise argparse.ArgumentError: There was something wrong with the args\n        '
    parser = ArgumentParser()
    parser.add_argument('-ul', '--user_level', default='mod')
    parser.add_argument('-c', '--cooldown', default=None)
    parser.add_argument('func_name')
    parser.add_argument('response_text', nargs='*')
    options = parser.parse_args(args)
    response_text = ' '.join(options.response_text)
    response_text = response_text.replace('\\', '\\\\')
    response_text = response_text.replace('"', '\\"')
    func_body = u'\n        return SimpleCom("{response_text}", user, table.pack(...))\n        '.format(response_text=response_text)
    code = self.func_template.format(func_name=options.func_name, args='user,...', func_body=func_body)
    flags = {'want_user': 1, 'quoted': 0, 'cooldown': (int(options.cooldown) if options.cooldown else None)}
    added = bool(options.response_text)
    return (added, options.func_name, flags, options.user_level, code)