[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 992226b1342e6c7c653ac83fe0fbb0fe9c6d1b06
Ville Skyttä
ville.skytta at iki.fi
Tue Oct 20 18:32:42 UTC 2009
The following commit has been merged in the master branch:
commit 1233ebfecdec0ebf1f02c1fa578d8b19c3c76489
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Oct 20 20:58:27 2009 +0300
Parse global cvs options from --help-options.
diff --git a/contrib/cvs b/contrib/cvs
index f255d9b..429bfcb 100644
--- a/contrib/cvs
+++ b/contrib/cvs
@@ -28,6 +28,11 @@ _cvs_commands()
cvs --help-commands 2>&1 | awk '/^( *|\t)/ { print $1 }'
}
+_cvs_options()
+{
+ cvs --help-options 2>&1 | awk '/^( *|\t)-/ { print $1 }'
+}
+
_cvs()
{
local cur count mode i cvsroot cvsroots pwd
@@ -248,8 +253,7 @@ _cvs()
fi
;;
"")
- COMPREPLY=( $( compgen -W '$( _cvs_commands ) \
- -Q -q -b -d -e -f -l -n -t -r -w -x -z \
+ COMPREPLY=( $( compgen -W '$( _cvs_commands ) $( _cvs_options ) \
--help --help-commands --help-options --version' -- "$cur" ) )
;;
*)
--
bash-completion
More information about the Bash-completion-commits
mailing list