def handle_command(self): try: s = re.search(r'.* -name (.*)$|\s.*', self.cmd_str, re.M|re.I) return { "name": s.group(1) } except: return {}