bin/doom: alias -h/--help to help command

This commit is contained in:
Henrik Lissner 2019-03-03 21:55:24 -05:00
parent 3873ab3875
commit 2e4feed1a4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -30,6 +30,7 @@
" doom run -p ~/.other.doom.d -e ~/.other.emacs.d -nw file.txt\n"
"\n"
(format! (bold "Options:\n"))
" -h --help\t\tSame as help command\n"
" -d --debug\t\tTurns on doom-debug-mode (and debug-on-error)\n"
" -e --emacsd DIR\tUse the emacs config at DIR (e.g. ~/.emacs.d)\n"
" -i --insecure\t\tDisable TLS/SSL validation (not recommended)\n"
@ -46,7 +47,7 @@
(while (ignore-errors (string-prefix-p "-" (car args)))
(pcase (pop args)
((or "-h" "--help")
(error "Did you mean 'doom help'?"))
(push "help" args))
((or "-d" "--debug")
(setenv "DEBUG" "1")
(message "Debug mode on"))