Merge pull request #2304 from rohitpaulk/fix-empty-help

cli: Handle --help without an argument
This commit is contained in:
Henrik Lissner 2020-01-05 20:10:11 -05:00 committed by GitHub
commit 637243a7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,8 @@ with a different private module."
(setq doom-auto-accept t) (setq doom-auto-accept t)
(print! (info "Auto-yes on"))) (print! (info "Auto-yes on")))
(when help-p (when help-p
(push command args) (when command
(push command args))
(setq command "help")) (setq command "help"))
(when (equal (user-real-uid) 0) (when (equal (user-real-uid) 0)