bin/doom: respond to -h/--help

In case people try that before `help`
This commit is contained in:
Henrik Lissner 2018-06-02 02:55:50 +02:00
parent c747bc46e3
commit 6fdd6cb14c
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -43,6 +43,8 @@
;; Parse options
(while (ignore-errors (string-prefix-p "-" (car args)))
(pcase (pop args)
((or "-h" "--help")
(error "Did you mean 'doom help'?"))
((or "-d" "--debug")
(setq doom-debug-mode t))
((or "-p" "--private")