Skip to content

Commit

Permalink
kcov: Complete arguments of --limits option.
Browse files Browse the repository at this point in the history
  • Loading branch information
GArik committed Jul 4, 2012
1 parent 36f1b83 commit f604f6c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions completions/kcov
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit f604f6c

Please sign in to comment.