summaryrefslogtreecommitdiff
path: root/completions/iscsiadm
diff options
context:
space:
mode:
Diffstat (limited to 'completions/iscsiadm')
-rw-r--r--completions/iscsiadm22
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/iscsiadm b/completions/iscsiadm
index e5218d75..1fa30db6 100644
--- a/completions/iscsiadm
+++ b/completions/iscsiadm
@@ -6,21 +6,21 @@ _iscsiadm()
_init_completion -s || return
case $prev in
- -m|--mode)
- COMPREPLY=( $( compgen -W 'discovery node session iface fw host' \
- -- "$cur" ) )
+ --mode|-!(-*)m)
+ COMPREPLY=( $(compgen -W 'discovery node session iface fw host' \
+ -- "$cur") )
return
;;
- -o|--op)
- COMPREPLY=( $( compgen -W 'new delete update show' -- "$cur" ) )
+ --op|-!(-*)o)
+ COMPREPLY=( $(compgen -W 'new delete update show' -- "$cur") )
return
;;
- -t|--type)
- COMPREPLY=( $( compgen -W 'sendtargets st slp isns fw' -- "$cur" ) )
+ --type|-!(-*)t)
+ COMPREPLY=( $(compgen -W 'sendtargets st slp isns fw' -- "$cur") )
return
;;
- -L|-U|--loginall|--logoutall)
- COMPREPLY=( $( compgen -W 'all manual automatic' -- "$cur" ) )
+ --loginall|--logoutall|-!(-*)[LU])
+ COMPREPLY=( $(compgen -W 'all manual automatic' -- "$cur") )
return
;;
esac
@@ -28,7 +28,7 @@ _iscsiadm()
$split && return
local options
- if [[ $cword -gt 1 ]] ; then
+ if [[ $cword -gt 1 ]]; then
case ${words[2]} in
discovery)
@@ -59,7 +59,7 @@ _iscsiadm()
options='--mode'
fi
- COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$options" -- "$cur") )
} &&
complete -F _iscsiadm iscsiadm