mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(cli): ensure type specs are case insensitive
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user