Generate opt args in def before outputting vars to avoid missed yields