summaryrefslogtreecommitdiffstats
path: root/completions/sshow
diff options
context:
space:
mode:
Diffstat (limited to 'completions/sshow')
-rw-r--r--completions/sshow14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/sshow b/completions/sshow
index 917444e..0d21bbb 100644
--- a/completions/sshow
+++ b/completions/sshow
@@ -1,26 +1,26 @@
# sshow completion -*- shell-script -*-
-_sshow()
+_comp_cmd_sshow()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
-*i)
- _available_interfaces -a
+ _comp_compgen_available_interfaces -a
return
;;
-*p)
- _filedir pcap
+ _comp_compgen_filedir pcap
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
+ _comp_compgen_usage
fi
} &&
- complete -F _sshow sshow
+ complete -F _comp_cmd_sshow sshow
# ex: filetype=sh