From 6ffee6ece7473bce81ad3dd92f37c60dc2b07940 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 29 Jul 2022 12:34:58 +0200 Subject: [PATCH] fix(cli): ensure type specs are case insensitive --- core/core-cli-lib.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-cli-lib.el b/core/core-cli-lib.el index 158254ff7..568956b11 100644 --- a/core/core-cli-lib.el +++ b/core/core-cli-lib.el @@ -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