mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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)
|
||||
(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
|
||||
|
Reference in New Issue
Block a user