#compdef tla subcmds=(${${${(M)${(f)"$(_call_program tla tla help)"}:#[ ]* : *}% : *}##[ ]##} ) if (( CURRENT == 2 )); then _describe -t commands 'tla command' compadd - "$subcmds[@]" else _files fi