From e5acbd7c40632249d8eeb8c078f567dfe128264a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 7 Aug 2022 17:30:15 +0200 Subject: [PATCH] docs(cli): make file/dir/stdout type errors consistent --- lisp/doom-cli-lib.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lisp/doom-cli-lib.el b/lisp/doom-cli-lib.el index 7d17765ba..28222cf20 100644 --- a/lisp/doom-cli-lib.el +++ b/lisp/doom-cli-lib.el @@ -55,16 +55,16 @@ See argument types in `doom-cli-argument-types', and `defcli!' for usage.") (defvar doom-cli-option-arg-types `((dir :test file-directory-p - :read doom-path - :error "Directory does not exist" + :read expand-file-name + :error "Not a valid path to an existing directory" :zshcomp "_dirs") (file :test file-exists-p - :read doom-path - :error "File does not exist" + :read expand-file-name + :error "Not a valid path to an existing file" :zshcomp "_files") (stdout :test ,(lambda (str) (equal str "-")) :read identity - :error "Must be a dash to signal stdout" + :error "Not a dash to signal stdout" :zshcomp "(-)") (path :read expand-file-name :zshcomp "_files") (form :read read)