#compdef mkpasswd

_arguments -C \
  '(-l)--local[print local group information]' \
  '(--local)-l[print local group information]' \
  '(-d)--domain[print domain accounts (from current domain if no domain specified)]' \
  '(--domain)-d[print domain accounts (from current domain if no domain specified)]' \
  '(-o)--id-offset[change the default offset (10000) added to uids in domain accounts]' \
  '(--id-offset)-o[change the default offset (10000) added to uids in domain accounts]' \
  '(-g)--local-groups[print local group information too if no domain specified]' \
  '(--local-groups)-g[print local group information too if no domain specified]' \
  '(-m)--no-mount[don\'t use mount points for home dir]' \
  '(--no-mount)-m[don\'t use mount points for home dir]' \
  '(-s)--no-sids[don\'t print SIDs in pwd field (this affects ntsec)]' \
  '(--no-sids)-s[don\'t print SIDs in pwd field (this affects ntsec)]' \
  '(-p)--path-to-home[use specified path instead of user account home dir]' \
  '(--path-to-home)-p[use specified path instead of user account home dir]' \
  '(-u)--username[only return information for the specified user]' \
  '(--username)-u[only return information for the specified user]' \
  '(-h)--help[displays this message]' \
  '(--help)-h[displays this message]' \
  '(-v)--version[print version information and exit]' \
  '(--version)-v[print version information and exit]' \
  ':domain:'
