      def gen_cli_arguments(self, command):
          """ Return the generated cli arguments for the selected command """
          for _, option in self.gen_command_options(command):
              optval = str(option["cpanel_option"].get())
              opt = option["opts"][0]
              if command in ("extract", "convert") and opt == "-o":  # Output location for preview
                  output_dir = optval
              if command == "extract" and opt == "-b":               # Check for batch mode
 
</s> remove             if command in ("extract", "convert") and opt == "-o":
                get_images().set_faceswap_output_path(optval)
 </s> add             if command in ("extract", "convert") and opt == "-o":  # Output location for preview
                output_dir = optval
            if command == "extract" and opt == "-b":               # Check for batch mode
                batch_mode = optval </s> remove         ctl_dict = dict()
 </s> add         ctl_dict = {} </s> remove         image_files = self._get_images(self._pathoutput)
 </s> add         assert self._pathoutput is not None
        image_path = self._get_newest_folder() if self._batch_mode else self._pathoutput
        image_files = self._get_images(image_path)
        output_dir = None
        batch_mode = False
      def gen_cli_arguments(self, command):
          """ Return the generated cli arguments for the selected command """
        output_dir = None
        batch_mode = False
          for _, option in self.gen_command_options(command):
              optval = str(option["cpanel_option"].get())
              opt = option["opts"][0]
              if command in ("extract", "convert") and opt == "-o":  # Output location for preview
                  output_dir = optval
              if command == "extract" and opt == "-b":               # Check for batch mode
keep add keep keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/options.py