summaryrefslogtreecommitdiffstats
path: root/completions/xmlwf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/xmlwf19
1 files changed, 9 insertions, 10 deletions
diff --git a/completions/xmlwf b/completions/xmlwf
index b397af9..d047ee1 100644
--- a/completions/xmlwf
+++ b/completions/xmlwf
@@ -1,32 +1,31 @@
# bash completion for xmlwf(1) -*- shell-script -*-
-_xmlwf()
+_comp_cmd_xmlwf()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
-*d)
- _filedir -d
+ _comp_compgen_filedir -d
return
;;
-*e)
- COMPREPLY=($(compgen -W 'US-ASCII UTF-8 UTF-16 ISO-8859-1' \
- -- "$cur"))
+ _comp_compgen -- -W 'US-ASCII UTF-8 UTF-16 ISO-8859-1'
return
;;
- -*v)
+ -*[abv])
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
+ _comp_compgen_help || _comp_compgen_usage
return
fi
- _filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl|jnlp|tld|dbk|docbook|page)'
+ _comp_compgen_filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl|jnlp|tld|dbk|docbook|page)'
} &&
- complete -F _xmlwf xmlwf
+ complete -F _comp_cmd_xmlwf xmlwf
# ex: filetype=sh