Function: majutsu-squash--remove-interactive-tool-args

majutsu-squash--remove-interactive-tool-args is a natively compiled function defined in majutsu-squash.el.

Signature

(majutsu-squash--remove-interactive-tool-args ARGS)

Documentation

Remove native interactive/tool arguments from ARGS.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-squash.el
(defun majutsu-squash--remove-interactive-tool-args (args)
  "Remove native interactive/tool arguments from ARGS."
  (let (out)
    (while args
      (let ((arg (pop args)))
        (cond
         ((member arg '("-i" "--interactive")))
         ((transient-arg-value "--tool=" (list arg)))
         ((equal arg "--tool")
          (when args (pop args)))
         (t
          (push arg out)))))
    (nreverse out)))