Skip to content

Commit effa368

Browse files
Make "-v" argument-regexp match complete string
Prevents invalid substring matches for "--verbose --verbose" init value. Closes #63.
1 parent 9bf8db3 commit effa368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-pytest.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ When present ON-REPLACEMENT is substituted, else OFF-REPLACEMENT is appended."
479479
:class 'transient-switches
480480
:key "-v"
481481
:argument-format "%s"
482-
:argument-regexp "\\(--verbose\\|--verbose --verbose\\)"
482+
:argument-regexp "^\\(--verbose\\|--verbose --verbose\\)$"
483483
:choices '("--verbose" "--verbose --verbose"))
484484

485485
(transient-define-argument python-pytest:--tb ()

0 commit comments

Comments
 (0)