The following commit has been merged in the master branch:
commit 3e4aadd72db386ca1236bebc363978ab8e46f202
Author: Ville Skyttä <[email protected]>
Date: Tue May 3 09:43:29 2011 +0300
ant: Improve -lib, -find/-s, and -D argument completions.
diff --git a/completions/ant b/completions/ant
index 286318c..5f5ad10 100644
--- a/completions/ant
+++ b/completions/ant
@@ -24,12 +24,18 @@ _ant()
COMPREPLY=( $( compgen -W '{1..10}' -- "$cur" ) )
return 0
;;
- -lib|-logger|-listener|-D|-inputhandler|-main)
+ -lib)
+ _filedir -d
+ return 0
+ ;;
+ -logger|-listener|-inputhandler|-main|-find|-s)
return 0
;;
esac
- if [[ "$cur" == -* ]]; then
+ if [[ $cur == -D* ]]; then
+ return 0
+ elif [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else
# available targets completion
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits