CLI fixes, include --trace option for gen tasks to provide detailed error output