          ctl_dict = dict()
          for cmd, opts in self.opts.items():
              if command and command != cmd:
                  continue
              cmd_dict = dict()
              for key, val in opts.items():
                  if not isinstance(val, dict):
                      continue
                  cmd_dict[key] = val["cpanel_option"].get()
              ctl_dict[cmd] = cmd_dict
 
</s> remove         ctl_dict = dict()
 </s> add         ctl_dict = {} </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         icons = {}
 </s> add         icons: Dict[str, ImageTk.PhotoImage] = {} </s> remove         self.commands = dict()
        self.opts = dict()
 </s> add         self.commands = {}
        self.opts = {} </s> remove         defaults = {key: next(ext for ext in val[0][1].split(" ")).replace("*", "")
                    for key, val in self._filetypes.items()}
 </s> add         defaults: Dict[str, Optional[str]] = {
            key: next(ext for ext in val[0][1].split(" ")).replace("*", "")
            for key, val in self._filetypes.items()}
            cmd_dict = {}
          ctl_dict = dict()
          for cmd, opts in self.opts.items():
              if command and command != cmd:
                  continue
            cmd_dict = {}
              for key, val in opts.items():
                  if not isinstance(val, dict):
                      continue
                  cmd_dict[key] = val["cpanel_option"].get()
              ctl_dict[cmd] = cmd_dict
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/options.py