From 2e4feed1a47976dfb112e4cdba53091370190367 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 3 Mar 2019 21:55:24 -0500 Subject: [PATCH] bin/doom: alias -h/--help to help command --- bin/doom | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/doom b/bin/doom index 7b8780f7a..92b66bd26 100755 --- a/bin/doom +++ b/bin/doom @@ -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"))