summaryrefslogtreecommitdiff
path: root/completions/hping2
diff options
context:
space:
mode:
Diffstat (limited to 'completions/hping2')
-rw-r--r--completions/hping216
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/hping2 b/completions/hping2
index 78d35b05..666838b1 100644
--- a/completions/hping2
+++ b/completions/hping2
@@ -6,30 +6,30 @@ _hping2()
_init_completion || return
case $prev in
- --interface|-!(-*)I)
+ --interface | -!(-*)I)
_available_interfaces
return
;;
- --spoof|-!(-*)a)
+ --spoof | -!(-*)a)
_known_hosts_real -- "$cur"
return
;;
- --tos|-!(-*)o)
- COMPREPLY=( $(compgen -W '02 04 08 10') )
+ --tos | -!(-*)o)
+ COMPREPLY=($(compgen -W '02 04 08 10'))
return
;;
- --file|-!(-*)E)
+ --file | -!(-*)E)
_filedir
return
;;
esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
else
_known_hosts_real -- "$cur"
fi
} &&
-complete -F _hping2 hping hping2 hping3
+ complete -F _hping2 hping hping2 hping3
# ex: filetype=sh