#compdef emulate _arguments -s -S -A '-*' : \ '(2 3)-l[list options to be set or unset]' \ '(2 3)-L[set local_options and local_traps as well]' \ '-R[reset all options instead of only those needed for script portability]' \ '1:shell to emulate:(zsh sh ksh csh)' \ '(-l -L)2:specify optional command:(-c)' \ '(-l -L)3: :_cmdstring'