#compdef ohh
#autoload

local -a _1st_arguments

_1st_arguments=(
  'login:Login to the server'
  'start:Start a working session'
  'stop:Stop a working session'
  'status:Check the current status'
)

local expl

_arguments \
  '(-v --version)'{-v,--version}'[show version]' \
  '(-h --help)'{-h,--help}'[show help]' \
  '*:: :->subcmds' && return 0

if (( CURRENT == 1 )); then
  _describe -t commands "ohh subcommand" _1st_arguments
  return
fi
