summaryrefslogtreecommitdiff
path: root/completions/pwck
diff options
context:
space:
mode:
Diffstat (limited to 'completions/pwck')
-rw-r--r--completions/pwck3
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/pwck b/completions/pwck
index 7723f66d..cc5f2e42 100644
--- a/completions/pwck
+++ b/completions/pwck
@@ -6,7 +6,8 @@ _pwck()
_init_completion || return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") )
+ local opts=$(_parse_help "$1")
+ COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") )
return
fi