bin/doom: show usage info if no command is entered

This commit is contained in:
Henrik Lissner 2018-06-02 02:56:18 +02:00
parent 6fdd6cb14c
commit 08a453bd5e
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -68,7 +68,9 @@
(member (car args) '("help" "h")))
(usage))
((not args)
(error "Expecting a command"))
(usage)
(message "")
(error "No command detected, aborting!"))
((let ((default-directory user-emacs-directory))
(setq argv nil
noninteractive 'doom)