[TIMOB-15782] Fixed regression with --no-prompt not working properly.