Browse Source

added yii version to the console help output

tags/2.0.0
Carsten Brandt 10 years ago
parent
commit
15c54de666
  1. 1
      framework/console/controllers/HelpController.php

1
framework/console/controllers/HelpController.php

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

Loading…
Cancel
Save