Skip to content

Commit

Permalink
Make "-v" argument-regexp match complete string
Browse files Browse the repository at this point in the history
Prevents invalid substring matches for "--verbose --verbose" init
value.

Closes #63.
  • Loading branch information
juergenhoetzel committed Sep 17, 2022
1 parent 9bf8db3 commit 4f13257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-pytest.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 4f13257

Please sign in to comment.