mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix bin/doom misinterpreting wrong-num-of-args errors
This commit is contained in:
@ -112,7 +112,6 @@ If SHOW-HELP is non-nil, show the documentation for said dispatcher."
|
|||||||
(let ((start-time (current-time)))
|
(let ((start-time (current-time)))
|
||||||
(run-hooks 'doom-cli-pre-execute-hook)
|
(run-hooks 'doom-cli-pre-execute-hook)
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(condition-case e
|
|
||||||
(when-let (ret (apply fn args))
|
(when-let (ret (apply fn args))
|
||||||
(print!
|
(print!
|
||||||
"\n%s"
|
"\n%s"
|
||||||
@ -122,8 +121,6 @@ If SHOW-HELP is non-nil, show the documentation for said dispatcher."
|
|||||||
start-time))))
|
start-time))))
|
||||||
(run-hooks 'doom-cli-post-execute-hook)
|
(run-hooks 'doom-cli-post-execute-hook)
|
||||||
ret)
|
ret)
|
||||||
('wrong-number-of-arguments
|
|
||||||
(user-error "I don't understand 'doom %s %s'\n\nRun 'doom help' to see what I do understand." cmd (string-join args " "))))
|
|
||||||
(run-hooks 'doom-cli-post-error-execute-hook))))))
|
(run-hooks 'doom-cli-post-error-execute-hook))))))
|
||||||
|
|
||||||
(defmacro defcligroup! (name docstring &rest body)
|
(defmacro defcligroup! (name docstring &rest body)
|
||||||
|
Reference in New Issue
Block a user