def attempt_special(self, cmd_str):
# Special command handling
fields = cmd_str.split(" ")
SKIP = False
command_set = []
if cmd_str[0] == '@' or cmd_str[0] == '%':
special_cmd = fields[0][1:]
if special_cmd == "script":
command_set = self.parse_script(fields[1], *fields[2:])
elif special_cmd in special_commands:
try:
special_commands[special_cmd](*fields[1:])
SKIP = True
except TypeError as e:
print e
print("Likely incorrect usage of '%s'" % special_cmd)
return SKIP, command_set
评论列表
文章目录