docs(cli): make file/dir/stdout type errors consistent
This commit is contained in:
parent
d53e08767d
commit
e5acbd7c40
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue