Browse Source

minor fix of console commands.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
a07a67ad8d
  1. 4
      framework/console/controllers/HelpController.php
  2. 4
      framework/console/controllers/MigrateController.php

4
framework/console/controllers/HelpController.php

@ -252,6 +252,7 @@ class HelpController extends Controller
}
$tags = $this->parseComment($method->getDocComment());
$options = $this->getOptionHelps($controller);
if ($tags['description'] !== '') {
echo "\nDESCRIPTION";
@ -271,6 +272,9 @@ class HelpController extends Controller
if (!empty($optional)) {
echo ' [' . implode('] [', array_keys($optional)) . ']';
}
if (!empty($options)) {
echo ' [...options...]';
}
echo "\n\n";
if (!empty($required) || !empty($optional)) {

4
framework/console/controllers/MigrateController.php

@ -22,8 +22,8 @@ use yii\util\ArrayHelper;
*
* A migration means a set of persistent changes to the application environment
* that is shared among different developers. For example, in an application
* backed by a database, a migration may refer to a set of changes to the database,
* such as creating a new table, adding a new table column.
* backed by a database, a migration may refer to a set of changes to
* the database, such as creating a new table, adding a new table column.
*
* This command provides support for tracking the migration history, upgrading
* or downloading with migrations, and creating new migration skeletons.

Loading…
Cancel
Save