#autoload

local gropt=-J format

if [[ "$1" = -[VJ]* ]]; then
  gropt="$1"
  shift
fi

_lastdescr=( "$_lastdescr[@]" "$2" )

_style -s descriptions format format

if _style matches group; then
  if [[ -n "$format" ]]; then
    eval "$1=($gropt ${(q)2} -X ${(q)format//\\%d/$2})"
  else
    eval "$1=($gropt ${(q)2})"
  fi
else
  if [[ -n "$format" ]]; then
    eval "$1=(-X ${(q)format//\\%d/$2})"
  else
    eval "$1=()"
  fi
fi

return 0
