fix(cli): ensure type specs are case insensitive

This commit is contained in:
Henrik Lissner 2022-07-29 12:34:58 +02:00
parent 491f49cfe5
commit 6ffee6ece7
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -508,7 +508,7 @@ Throws `doom-cli-invalid-option-error' for illegal values."
(if (or (symbolp type)
(and (stringp 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))
(list 'str :test #'stringp))))
(condition-case-unless-debug e