summaryrefslogtreecommitdiff
path: root/completions/wol
diff options
context:
space:
mode:
Diffstat (limited to 'completions/wol')
-rw-r--r--completions/wol7
1 files changed, 4 insertions, 3 deletions
diff --git a/completions/wol b/completions/wol
index 3e663ac6..ce8e6295 100644
--- a/completions/wol
+++ b/completions/wol
@@ -4,9 +4,10 @@ have wol || return
_wol()
{
- local cur prev split=false
- COMPREPLY=()
- _get_comp_words_by_ref -n : cur prev
+ local cur prev words cword
+ _init_completion -n : || return
+
+ local split=false
_split_longopt && split=true
case $prev in