#compdef set

local prev="$words[CURRENT-1]"

if [[ "$prev" = [-+]o ]]; then
  compgen -o
elif [[ "$prev" = -A ]]; then
  compgen -A
fi
