          session picks them up for logging to the graph and analysis tab.
  
          Parameters
          ----------
          cli_option: list
              The command line option to be checked for model folder or name
          """
          if cli_option[0] == "-t":
              self._training_session_location["model_name"] = cli_option[1].lower().replace("-", "_")
              logger.debug("model_name: '%s'", self._training_session_location["model_name"])
 
</s> remove     def _get_training_session_info(self, cli_option):
 </s> add     def _get_training_session_info(self, cli_option: list[str]) -> None: </s> remove     def build_args(self, category, command=None, generate=False):
 </s> add     def _build_args(self,
                    category: str,
                    command: str | None = None,
                    generate: bool = False) -> list[str]: </s> remove     def execute_script(self, command, args):
        """ Execute the requested Faceswap Script """
 </s> add     @property
    def command(self) -> str | None:
        """ str | None: The currently executing command, when process running or ``None`` """
        return self._command

    def execute_script(self, command: str, args: list[str]) -> None:
        """ Execute the requested Faceswap Script

        Parameters
        ----------
        command: str
            The faceswap command that is to be run
        args: list[str]
            The full command line arguments to be executed
        """ </s> remove         category, command = self.tk_vars.generate_command.get().split(",")
        args = self.build_args(category, command=command, generate=True)
        self.tk_vars.console_clear.set(True)
        logger.debug(" ".join(args))
        print(" ".join(args))
        self.tk_vars.generate_command.set("")

    def prepare(self, category):
        """ Prepare the environment for execution """
 </s> add         category, command = self._tk_vars.generate_command.get().split(",")
        fs_args = self._build_args(category, command=command, generate=True)
        self._tk_vars.console_clear.set(True)
        logger.debug(" ".join(fs_args))
        print(" ".join(fs_args))
        self._tk_vars.generate_command.set("")

    def _prepare(self, category: T.Literal["faceswap", "tools"]) -> list[str]:
        """ Prepare the environment for execution, Sets the 'running task' and 'console clear'
        global tkinter variables. If training, sets the 'is training' variable

        Parameters
        ----------
        category: str, ["faceswap", "tools"]
            The script that is executing the command

        Returns
        -------
        list[str]
            The command line arguments to execute for the faceswap job
        """
        cli_option: list[str]
          session picks them up for logging to the graph and analysis tab.
  
          Parameters
          ----------
        cli_option: list[str]
              The command line option to be checked for model folder or name
          """
          if cli_option[0] == "-t":
              self._training_session_location["model_name"] = cli_option[1].lower().replace("-", "_")
              logger.debug("model_name: '%s'", self._training_session_location["model_name"])
keep keep keep keep replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py