code: def exec_cmd(self, cmdstr):
          
          parts = cmdstr.split()
          if len(parts):
              cmd, args = parts[0], parts[1:]
              self._dispatch(cmd, args)
          else:
              pass
docs: Parse line from CLI read loop and execute provided command