Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a07a67ad
Commit
a07a67ad
authored
Feb 05, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix of console commands.
parent
8b2b7915
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
HelpController.php
framework/console/controllers/HelpController.php
+4
-0
MigrateController.php
framework/console/controllers/MigrateController.php
+2
-2
No files found.
framework/console/controllers/HelpController.php
View file @
a07a67ad
...
@@ -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
"
\n
DESCRIPTION"
;
echo
"
\n
DESCRIPTION"
;
...
@@ -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
))
{
...
...
framework/console/controllers/MigrateController.php
View file @
a07a67ad
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment