Skip to content

Commit ea13241

Browse files
committed
fix(pytest): do not filter underscores from parsed option arg choices
For example, one of `--vcr-record`'s arg choices is `new_episodes`.
1 parent 5d57dd0 commit ea13241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/pytest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
_comp_cmd_pytest__option_choice_args()
44
{
55
local modes=$("$1" "$2=bash-completion-nonexistent" 2>&1 |
6-
command sed -e 's/[^[:space:][:alnum:]-]\{1,\}//g' \
6+
command sed -e 's/[^[:space:][:alnum:]_-]\{1,\}//g' \
77
-ne 's/.*choose from //p')
88
_comp_compgen -a -- -W '$modes'
99
}

0 commit comments

Comments
 (0)