code: def set_default_command(self, command):
          
          cmd_name = command.name
          self.add_command(command)
          self.default_cmd_name = cmd_name
docs: Sets a command function as the default command.