summaryrefslogtreecommitdiff
path: root/completions/wol
diff options
context:
space:
mode:
authorDavid Paleino <dapal@debian.org>2011-11-03 12:32:52 +0100
committerDavid Paleino <dapal@debian.org>2011-11-03 12:32:52 +0100
commit2c8171c38d87ddef31c92a76547d3fdf773a1337 (patch)
tree5e720d5a06ead72ed55454bf6647a712a761ed91 /completions/wol
parent9920a8faedf704420571d8072ccab27e9dac40ba (diff)
downloadbash-completion-2c8171c38d87ddef31c92a76547d3fdf773a1337.tar.gz
Imported Upstream version 1.90upstream/1.90
Diffstat (limited to 'completions/wol')
-rw-r--r--completions/wol19
1 files changed, 5 insertions, 14 deletions
diff --git a/completions/wol b/completions/wol
index 89a1a8ba..02030aba 100644
--- a/completions/wol
+++ b/completions/wol
@@ -1,12 +1,9 @@
-# wol(1) completion
+# wol(1) completion -*- shell-script -*-
-have wol &&
_wol()
{
- local cur prev split=false
- COMPREPLY=()
- _get_comp_words_by_ref -n : cur prev
- _split_longopt && split=true
+ local cur prev words cword split
+ _init_completion -s -n : || return
case $prev in
-V|--version|--help|-p|--port|--passwd|-w|--wait)
@@ -29,8 +26,8 @@ _wol()
$split && return 0
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--help --version --verbose --wait --host
- --port --file --passwd' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
return 0
fi
@@ -38,10 +35,4 @@ _wol()
} &&
complete -F _wol wol
-# Local variables:
-# mode: shell-script
-# sh-basic-offset: 4
-# sh-indent-comment: t
-# indent-tabs-mode: nil
-# End:
# ex: ts=4 sw=4 et filetype=sh