kcov: Complete arguments of --limits option.

This commit is contained in:
Igor Murzov 2012-07-05 01:01:50 +04:00
parent 36f1b832fd
commit f604f6ce5b

View File

@ -19,8 +19,22 @@ _kcov()
_filedir
return
;;
--limits|-l|--title|-t|--include-pattern|--exclude-pattern|\
--path-strip-level)
--limits|-l)
split=false
if [[ "$cur" == ?*,* ]]; then
prev="${cur%,*}"
cur="${cur##*,}"
split=true
fi
COMPREPLY=( $( compgen -W "{0..100}" -- "$cur" ) )
if $split; then
COMPREPLY=( ${COMPREPLY[@]/#/"$prev,"} )
else
compopt -o nospace
fi
return
;;
--title|-t|--include-pattern|--exclude-pattern|--path-strip-level)
# argument required but no completions available
return
;;