Skip to content

Commit 5085d6b

Browse files
committed
refactor(pytest): ...__option_choice_args main command convention
1 parent 01611dd commit 5085d6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/pytest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_comp_cmd_pytest__option_choice_args()
44
{
5-
local modes=$("${2:-pytest}" "$1=bash-completion-nonexistent" 2>&1 |
5+
local modes=$("$1" "$2=bash-completion-nonexistent" 2>&1 |
66
command sed -e 's/[^[:space:][:alnum:]-]\{1,\}//g' \
77
-ne 's/.*choose from //p')
88
_comp_compgen -a -- -W '$modes'
@@ -87,7 +87,7 @@ _comp_cmd_pytest()
8787
return
8888
;;
8989
--dist | --vcr-record?(-mode))
90-
_comp_cmd_pytest__option_choice_args "$prev" "$1"
90+
_comp_cmd_pytest__option_choice_args "$1" "$prev"
9191
return
9292
;;
9393
esac

0 commit comments

Comments
 (0)