The following commit has been merged in the master branch:
commit 95ea13a0f0c5e4e2ba1a441bd96e4fb8b9958fda
Author: Ville Skyttä <[email protected]>
Date:   Fri Jul 22 00:10:36 2011 +0300

    _longopt: Don't offer completions after --help, --usage, or --version.

diff --git a/bash_completion b/bash_completion
index c5b7705..bb65f2c 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

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to