added yii version to the console help output

This commit is contained in:
Carsten Brandt
2014-10-04 12:06:12 +02:00
parent c303ffd64a
commit 15c54de666

View File

@ -182,6 +182,7 @@ class HelpController extends Controller
protected function getDefaultHelp()
{
$commands = $this->getCommandDescriptions();
$this->stdout("\nThis is Yii version " . \Yii::getVersion() . ".\n");
if (!empty($commands)) {
$this->stdout("\nThe following commands are available:\n\n", Console::BOLD);
$len = 0;