From a07a67ad8d230f614a550461a9439b3a71fa4f3b Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 5 Feb 2013 16:17:07 -0500 Subject: [PATCH] minor fix of console commands. --- framework/console/controllers/HelpController.php | 4 ++++ framework/console/controllers/MigrateController.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/console/controllers/HelpController.php b/framework/console/controllers/HelpController.php index 5ad3bbc..3e2556c 100644 --- a/framework/console/controllers/HelpController.php +++ b/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)) { diff --git a/framework/console/controllers/MigrateController.php b/framework/console/controllers/MigrateController.php index 0f05d61..59dcb3f 100644 --- a/framework/console/controllers/MigrateController.php +++ b/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.