diff --git a/completions/pytest b/completions/pytest index 4299c5947be..bbd5d85d95c 100644 --- a/completions/pytest +++ b/completions/pytest @@ -13,7 +13,7 @@ _pytest() local cur prev words cword split comp_args _comp_initialize -s -n : -- "$@" || return - local otherflags='!(-*|*[kmorpWn]*)' + local otherflags='!(-*|*[kmorpcWn]*)' # shellcheck disable=SC2254 case $prev in --help | --maxfail | --report | --junit-prefix | --doctest-glob | \ @@ -57,7 +57,7 @@ _pytest() _filedir log return ;; - --ignore) + --ignore | -${otherflags}c) _filedir return ;;