[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-283-g0bc2bb5
Ville Skyttä
ville.skytta at iki.fi
Wed May 11 16:42:14 UTC 2011
The following commit has been merged in the master branch:
commit 7c6cca06304e673f74abaf1fe124e1116f1a5dfb
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed May 11 19:30:16 2011 +0300
make: Use _parse_help/_parse_usage instead of hardcoded option list.
diff --git a/completions/make b/completions/make
index 5f8a70e..f4fd6fa 100644
--- a/completions/make
+++ b/completions/make
@@ -23,18 +23,10 @@ _make()
$split && return 0
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-b -m -B -C -d -e -f -h -i -I\
- -j -l -k -n -o -p -q -r -R - s -S -t -v -w -W \
- --always-make --directory --debug \
- --environment-overrides --file --makefile --help \
- --ignore-errors --include-dir --jobs --load-average \
- --max-load --keep-going --just-print --dry-run \
- --recon --old-file --assume-old --print-data-base \
- --question --no-builtin-rules --no-builtin-variables \
- --silent --quiet --no-keep-goind --stop --touch \
- --version --print-directory --no-print-directory \
- --what-if --new-file --assume-new \
- --warn-undefined-variables' -- "$cur" ) )
+ local opts="$( _parse_help "$1" )"
+ [[ $opts ]] || opts="$( _parse_usage "$1" )"
+ COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
else
# before we check for makefiles, see if a path was specified
# with -C/--directory
--
bash-completion
More information about the Bash-completion-commits
mailing list