diff options
Diffstat (limited to 'completions/dhclient')
-rw-r--r-- | completions/dhclient | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/dhclient b/completions/dhclient index b097bbac..ce4b7452 100644 --- a/completions/dhclient +++ b/completions/dhclient @@ -6,11 +6,11 @@ _dhclient() _init_completion || return case $prev in - -p|-e) + -p | -e) return ;; -D) - COMPREPLY=( $(compgen -W 'LL LLT' -- "$cur") ) + COMPREPLY=($(compgen -W 'LL LLT' -- "$cur")) return ;; -*f) @@ -23,12 +23,12 @@ _dhclient() ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) else _available_interfaces fi } && -complete -F _dhclient dhclient + complete -F _dhclient dhclient # ex: filetype=sh |