fix(cli): ensure type specs are case insensitive
This commit is contained in:
parent
491f49cfe5
commit
6ffee6ece7
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ Throws `doom-cli-invalid-option-error' for illegal values."
|
||||||
(if (or (symbolp type)
|
(if (or (symbolp type)
|
||||||
(and (stringp type)
|
(and (stringp type)
|
||||||
(string-match-p "^[A-Z0-9-_]+$" type)))
|
(string-match-p "^[A-Z0-9-_]+$" type)))
|
||||||
(cdr (assq (if (symbolp type) type (intern type))
|
(cdr (assq (if (symbolp type) type (intern (downcase type)))
|
||||||
doom-cli-option-arg-types))
|
doom-cli-option-arg-types))
|
||||||
(list 'str :test #'stringp))))
|
(list 'str :test #'stringp))))
|
||||||
(condition-case-unless-debug e
|
(condition-case-unless-debug e
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue