#compdef last passwd groups

# If a parameter `users' exists and it is an array, we first try to
# complete only to its elements.

local expl users

_wanted users expl user || return 1

_style -a users users users &&
    compadd "$expl[@]" "$@" - "$users[@]" && return 0

compadd "$@" "$expl[@]" - "${(@k)userdirs}"
