summaryrefslogtreecommitdiff
path: root/completions/_chsh
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_chsh')
-rw-r--r--completions/_chsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/_chsh b/completions/_chsh
index 48473fe8..64ce5a1b 100644
--- a/completions/_chsh
+++ b/completions/_chsh
@@ -19,7 +19,8 @@ _chsh()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") )
+ local opts=$(_parse_help "$1")
+ COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") )
else
_allowed_users
fi