Commit a07a67ad by Qiang Xue

minor fix of console commands.

parent 8b2b7915
...@@ -252,6 +252,7 @@ class HelpController extends Controller ...@@ -252,6 +252,7 @@ class HelpController extends Controller
} }
$tags = $this->parseComment($method->getDocComment()); $tags = $this->parseComment($method->getDocComment());
$options = $this->getOptionHelps($controller);
if ($tags['description'] !== '') { if ($tags['description'] !== '') {
echo "\nDESCRIPTION"; echo "\nDESCRIPTION";
...@@ -271,6 +272,9 @@ class HelpController extends Controller ...@@ -271,6 +272,9 @@ class HelpController extends Controller
if (!empty($optional)) { if (!empty($optional)) {
echo ' [' . implode('] [', array_keys($optional)) . ']'; echo ' [' . implode('] [', array_keys($optional)) . ']';
} }
if (!empty($options)) {
echo ' [...options...]';
}
echo "\n\n"; echo "\n\n";
if (!empty($required) || !empty($optional)) { if (!empty($required) || !empty($optional)) {
......
...@@ -22,8 +22,8 @@ use yii\util\ArrayHelper; ...@@ -22,8 +22,8 @@ use yii\util\ArrayHelper;
* *
* A migration means a set of persistent changes to the application environment * A migration means a set of persistent changes to the application environment
* that is shared among different developers. For example, in an application * 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, * backed by a database, a migration may refer to a set of changes to
* such as creating a new table, adding a new table column. * the database, such as creating a new table, adding a new table column.
* *
* This command provides support for tracking the migration history, upgrading * This command provides support for tracking the migration history, upgrading
* or downloading with migrations, and creating new migration skeletons. * or downloading with migrations, and creating new migration skeletons.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment