summaryrefslogtreecommitdiffstats
path: root/completions/rpmcheck
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/rpmcheck16
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/rpmcheck b/completions/rpmcheck
index cf4ed95..d7d0348 100644
--- a/completions/rpmcheck
+++ b/completions/rpmcheck
@@ -1,24 +1,24 @@
# bash completion for rpmcheck -*- shell-script -*-
-_rpmcheck()
+_comp_cmd_rpmcheck()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
-base)
- _filedir
+ _comp_compgen_filedir
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '-explain -failures -successes -dump
- -dump-all -base -help -compressed-input' -- "$cur"))
+ _comp_compgen -- -W '-explain -failures -successes -dump -dump-all
+ -base -help -compressed-input'
else
- _filedir
+ _comp_compgen_filedir
fi
} &&
- complete -F _rpmcheck rpmcheck
+ complete -F _comp_cmd_rpmcheck rpmcheck
# ex: filetype=sh