diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-22 00:10:36 +0300 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-22 00:10:36 +0300 |
| commit | 95ea13a0f0c5e4e2ba1a441bd96e4fb8b9958fda (patch) | |
| tree | 8037f7cce52f4ac7b99295f9cd174e1657916b58 /bash_completion | |
| parent | 7137e60a456150d761e0a4744bc4785acea6e20b (diff) | |
| download | bash-completion-95ea13a0f0c5e4e2ba1a441bd96e4fb8b9958fda.tar.gz | |
_longopt: Don't offer completions after --help, --usage, or --version.
Diffstat (limited to 'bash_completion')
| -rw-r--r-- | bash_completion | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bash_completion b/bash_completion index c5b77053..bb65f2cb 100644 --- a/bash_completion +++ b/bash_completion @@ -1650,6 +1650,9 @@ _longopt() _init_completion -s || return case "${prev,,}" in + --help|--usage|--version) + return 0 + ;; --*dir*) _filedir -d return 0 |
