bin/doom: show usage info if no command is entered
This commit is contained in:
parent
6fdd6cb14c
commit
08a453bd5e
1 changed files with 3 additions and 1 deletions
4
bin/doom
4
bin/doom
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue