We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
...__option_choice_args
1 parent 01611dd commit 5085d6bCopy full SHA for 5085d6b
completions/pytest
@@ -2,7 +2,7 @@
2
3
_comp_cmd_pytest__option_choice_args()
4
{
5
- local modes=$("${2:-pytest}" "$1=bash-completion-nonexistent" 2>&1 |
+ local modes=$("$1" "$2=bash-completion-nonexistent" 2>&1 |
6
command sed -e 's/[^[:space:][:alnum:]-]\{1,\}//g' \
7
-ne 's/.*choose from //p')
8
_comp_compgen -a -- -W '$modes'
@@ -87,7 +87,7 @@ _comp_cmd_pytest()
87
return
88
;;
89
--dist | --vcr-record?(-mode))
90
- _comp_cmd_pytest__option_choice_args "$prev" "$1"
+ _comp_cmd_pytest__option_choice_args "$1" "$prev"
91
92
93
esac
0 commit comments