From effa368163a66286b7e39cf9eef6566d481055b2 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Sat, 17 Sep 2022 20:00:28 +0200 Subject: [PATCH] Make "-v" argument-regexp match complete string Prevents invalid substring matches for "--verbose --verbose" init value. Closes #63. --- python-pytest.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pytest.el b/python-pytest.el index 29e9dca..91181c7 100644 --- a/python-pytest.el +++ b/python-pytest.el @@ -479,7 +479,7 @@ When present ON-REPLACEMENT is substituted, else OFF-REPLACEMENT is appended." :class 'transient-switches :key "-v" :argument-format "%s" - :argument-regexp "\\(--verbose\\|--verbose --verbose\\)" + :argument-regexp "^\\(--verbose\\|--verbose --verbose\\)$" :choices '("--verbose" "--verbose --verbose")) (transient-define-argument python-pytest:--tb ()