_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
|
||||
|
||||
case "${prev,,}" in
|
||||
--help|--usage|--version)
|
||||
return 0
|
||||
;;
|
||||
--*dir*)
|
||||
_filedir -d
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user