Parse global cvs options from --help-options.
This commit is contained in:
parent
881bd63774
commit
1233ebfecd
@ -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" ) )
|
||||
;;
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user