From 263754402216923712ac4c8b2d0aa02b3d96d0ef Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 30 Sep 2018 00:55:39 -0400 Subject: [PATCH] bin/doom: refactor no-args error message Dumping usage to stdout just drowns out the problem: they forgot a command! --- bin/doom | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/doom b/bin/doom index 54885786e..23d6e916b 100755 --- a/bin/doom +++ b/bin/doom @@ -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)