bin/doom: refactor no-args error message

Dumping usage to stdout just drowns out the problem: they forgot a
command!
This commit is contained in:
Henrik Lissner 2018-09-30 00:55:39 -04:00
parent 6c5512896a
commit 2637544022
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -79,9 +79,8 @@
(member (car args) '("help" "h")))
(usage))
((not args)
(usage)
(message "")
(error "No command detected, aborting!"))
(message "No command detected, aborting!\n\nRun %s help for documentation."
(file-name-nondirectory load-file-name)))
((let ((default-directory emacs-dir))
(setq argv nil
noninteractive 'doom)