[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-410-g346624b

Ville Skyttä ville.skytta at iki.fi
Thu Jul 21 21:15:53 UTC 2011


The following commit has been merged in the master branch:
commit 95ea13a0f0c5e4e2ba1a441bd96e4fb8b9958fda
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list