mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
bin/doom: respond to -h/--help
In case people try that before `help`
This commit is contained in:
2
bin/doom
2
bin/doom
@ -43,6 +43,8 @@
|
|||||||
;; Parse options
|
;; Parse options
|
||||||
(while (ignore-errors (string-prefix-p "-" (car args)))
|
(while (ignore-errors (string-prefix-p "-" (car args)))
|
||||||
(pcase (pop args)
|
(pcase (pop args)
|
||||||
|
((or "-h" "--help")
|
||||||
|
(error "Did you mean 'doom help'?"))
|
||||||
((or "-d" "--debug")
|
((or "-d" "--debug")
|
||||||
(setq doom-debug-mode t))
|
(setq doom-debug-mode t))
|
||||||
((or "-p" "--private")
|
((or "-p" "--private")
|
||||||
|
Reference in New Issue
Block a user