mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(cli): recognize command argument for --pager
--pager incorrectly expected a boolean argument, when it should accept any arbitrary pager command (set to a blank string to disable the pager). Ref: #6526
This commit is contained in:
4
bin/doom
4
bin/doom
@ -179,7 +179,7 @@ SEE ALSO:
|
||||
(debug? ("-D" "--debug") "Enable verbose output")
|
||||
(doomdir ("--doomdir" dir) "Use Doom config living in `DIR' (e.g. ~/.doom.d)")
|
||||
(emacsdir ("--emacsdir" dir) "Use Doom install living in `DIR' (e.g. ~/.emacs.d)")
|
||||
(pager ("--pager" bool) "Pager command to use for large output")
|
||||
(pager ("--pager" cmd) "Pager command to use for large output")
|
||||
;; TODO Implement after v3.0
|
||||
;; (profile ("--profile" name) "Use profile named NAME")
|
||||
&flags
|
||||
@ -222,7 +222,7 @@ SEE ALSO:
|
||||
(exit! :restart))
|
||||
;; But these don't need a restart:
|
||||
(when pager
|
||||
(setenv "DOOMPAGER" pager))
|
||||
(setq doom-cli-pager pager))
|
||||
(when force?
|
||||
(setf (doom-cli-context-suppress-prompts-p context) t)
|
||||
(doom-log "User requested all prompts be suppressed"))
|
||||
|
Reference in New Issue
Block a user