kcov: Complete arguments of --limits option.
This commit is contained in:
parent
36f1b832fd
commit
f604f6ce5b
@ -19,8 +19,22 @@ _kcov()
|
|||||||
_filedir
|
_filedir
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--limits|-l|--title|-t|--include-pattern|--exclude-pattern|\
|
--limits|-l)
|
||||||
--path-strip-level)
|
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
|
# argument required but no completions available
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user