Function: projectile-dispatch--args
projectile-dispatch--args is a byte-compiled function defined in
projectile.el.
Signature
(projectile-dispatch--args)
Documentation
Return the active projectile-dispatch switches, or nil.
Only returns switches while a transient suffix is executing; a wrapper invoked outside the menu sees none.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;; projectile-dispatch modifiers
;;
;; `projectile-dispatch' (below) exposes a handful of command modifiers as
;; transient switches: `--invalidate-cache', `--regexp', `--new-process' and a
;; `--display' target (this window / other window / other frame). Several
;; Projectile commands already honour these via a prefix argument, and the
;; other-window/-frame behaviour is provided by dedicated command variants.
;; The switches are wired to the commands through the thin wrapper commands
;; generated below: each reads the active switches and either dispatches to the
;; right display variant or sets `current-prefix-arg' accordingly.
;;
;; These wrappers are plain commands (usable without `transient' loaded, they
;; simply see no active switches then), so they're defined unconditionally,
;; unlike the transient prefix itself.
(defun projectile-dispatch--args ()
"Return the active `projectile-dispatch' switches, or nil.
Only returns switches while a transient suffix is executing; a wrapper
invoked outside the menu sees none."
(and (bound-and-true-p transient-current-command)
(transient-args transient-current-command)))