diff options
Diffstat (limited to 'completions/passwd')
-rw-r--r-- | completions/passwd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/completions/passwd b/completions/passwd index ce6d4c0e..5a1e5629 100644 --- a/completions/passwd +++ b/completions/passwd @@ -6,13 +6,14 @@ _passwd() _init_completion || return case $prev in - -n|--minimum|-x|--maximum|-w|--warning|-i|--inactive|-\?|--help|--usage) + --minimum|--maximum|--warning|--inactive|--help|--usage|-!(-*)[nxwi?]) return ;; esac 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 |