yiisoft/yii — pull request #647 by cebe (2012-04-27 17:31:38+00:00)
Title: Console exit codes

Allowed returning integer values as application exit code in
CConsoleCommand actions.
Application will now exit with the given integer value as exit code.
This is better than just `exit(1)` because onAfterAction event is called
And you can use the return value when doing something like
`Yii::app()->getCommandRunner()->run(...)` to run a specific command
inside an other command or from the web.