fix(cli): recognize global options for pseudo CLIs

The global options (like --debug and --pager) weren't recognized for
pseudo command like :help and :version (in particular, rendering --pager
ineffective).

Fix: #6526
This commit is contained in:
Henrik Lissner 2022-07-04 02:56:03 +02:00
parent af4c18e283
commit 6cb2c6e962
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -174,7 +174,7 @@ SEE ALSO:
https://git.doomemacs.org/issues Global issue tracker"
:partial t)
(defcli! (:before doom)
(defcli! :before
((force? ("-!" "--force") "Suppress prompts by auto-accepting their consequences")
(debug? ("-D" "--debug") "Enable verbose output")
(doomdir ("--doomdir" dir) "Use Doom config living in `DIR' (e.g. ~/.doom.d)")