[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 247ada3cc419ab140d01341ae8be87268aad739f

Ville Skyttä ville.skytta at iki.fi
Tue Dec 15 21:16:38 UTC 2009


The following commit has been merged in the master branch:
commit 247ada3cc419ab140d01341ae8be87268aad739f
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Dec 15 23:16:31 2009 +0200

    Make k3b option vs filename completion work more like others.

diff --git a/contrib/k3b b/contrib/k3b
index 5c6269f..692036d 100644
--- a/contrib/k3b
+++ b/contrib/k3b
@@ -37,8 +37,11 @@ _k3b()
             ;;
     esac
 
-    _filedir
-    _longopt k3b
+    if [[ "$cur" == -* ]] ; then
+        COMPREPLY=( $( compgen -W "$( _parse_help "$1" )" -- "$cur" ) )
+    else
+        _filedir
+    fi
 } &&
 complete -F _k3b -o filenames k3b
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list