yiisoft/yii — pull request #607 by musterknabe (2012-04-13 21:38:47+00:00)
Title: Added default value to CConsoleCommand::confirm

I've added a parameter to confirm() so that you can decide what happens, if the user just hits Enter.

Default behavior is like old version:
`confirm("Do something destructive?")` results in `Do something destructive? (yes|no) [no]:`

Can now be changed for convenience reasons:
`confirm("Do something non destructive?", true)` results in `Do something non destructive? (yes|no) [yes]:`