#compdef unace if (( CURRENT == 2)); then _values 'unace command' \ 'e[Extract files]' \ 'l[List archive]' \ 't[Test archive integrity]' \ 'v[List archive (verbose)]' \ 'x[Extract files with full path]' \ && return else _arguments -S \ '-c\ [Show comments]' \ '-f\ [Full path matching]' \ '-o\ [Overwrite files]' \ '-p\[Set ]' \ '-y\ [Assume yes on all queries]' \ '*:files:_files -g \*.rar\(-.\)\' \ && return fi