Skip to content

Commit

Permalink
fix(pytest): add "-c file"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 20, 2022
1 parent 9483503 commit ab7c0b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions/pytest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _pytest()
local cur prev words cword split comp_args
_comp_initialize -s -n : -- "$@" || return

local noargopts='!(-*|*[kmorpWn]*)'
local noargopts='!(-*|*[kmorpcWn]*)'
# shellcheck disable=SC2254
case $prev in
--help | --maxfail | --report | --junit-prefix | --doctest-glob | \
Expand Down Expand Up @@ -57,7 +57,7 @@ _pytest()
_filedir log
return
;;
--ignore)
--ignore | -${noargopts}c)
_filedir
return
;;
Expand Down

0 comments on commit ab7c0b4

Please sign in to comment.