_longopt: Don't offer completions after --help, --usage, or --version.
This commit is contained in:
parent
7137e60a45
commit
95ea13a0f0
@ -1650,6 +1650,9 @@ _longopt()
|
|||||||
_init_completion -s || return
|
_init_completion -s || return
|
||||||
|
|
||||||
case "${prev,,}" in
|
case "${prev,,}" in
|
||||||
|
--help|--usage|--version)
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
--*dir*)
|
--*dir*)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user