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"))) (member (car args) '("help" "h")))
(usage)) (usage))
((not args) ((not args)
(usage) (message "No command detected, aborting!\n\nRun %s help for documentation."
(message "") (file-name-nondirectory load-file-name)))
(error "No command detected, aborting!"))
((let ((default-directory emacs-dir)) ((let ((default-directory emacs-dir))
(setq argv nil (setq argv nil
noninteractive 'doom) noninteractive 'doom)