We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eab73d commit 5feb285Copy full SHA for 5feb285
completions/pytest
@@ -1,5 +1,13 @@
1
# bash completion for pytest(1) -*- shell-script -*-
2
3
+_pytest_option_choice_args()
4
+{
5
+ local modes=$("${2:-pytest}" $1=bash-competion-nonexistent 2>&1 |
6
+ command sed -e 's/[^[:space:][:alnum:]-]\{1,\}//g' \
7
+ -ne 's/.*choose from //p')
8
+ COMPREPLY+=($(compgen -W '$modes' -- "$cur"))
9
+}
10
+
11
_pytest()
12
{
13
local cur prev words cword split
@@ -78,10 +86,7 @@ _pytest()
78
86
return
79
87
;;
80
88
--dist)
81
- local modes=$("$1" --dist=nonexistent-distmode 2>&1 |
82
- command sed -e 's/[^[:space:][:alnum:]-]\{1,\}//g' \
83
- -ne 's/.*choose from //p')
84
- COMPREPLY=($(compgen -W '$modes' -- "$cur"))
89
+ _pytest_option_choice_args $prev "$1"
85
90
91
92
esac
0 commit comments