[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-302-gd8e22da
Ville Skyttä
ville.skytta at iki.fi
Sun May 15 12:59:50 UTC 2011
The following commit has been merged in the master branch:
commit d6036333d94460cdf3ac68b883424c9a87a76192
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun May 15 15:55:59 2011 +0300
monodevelop: Use _parse_help, split long options.
diff --git a/completions/monodevelop b/completions/monodevelop
index 0da791f..bb7aa64 100644
--- a/completions/monodevelop
+++ b/completions/monodevelop
@@ -3,12 +3,14 @@
have monodevelop &&
_monodevelop()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword split
+ _init_completion -s || return
+
+ $split && return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-? -help -help2 -ipc-tcp -newwindow -nologo \
- -usage -V -version' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
else
_filedir
fi
--
bash-completion
More information about the Bash-completion-commits
mailing list