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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
d471f0ba
Commit
d471f0ba
authored
Sep 06, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4288: added a hint on how to specify console boolean values to the output of help
parent
f21c2c29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
HelpController.php
framework/console/controllers/HelpController.php
+6
-0
No files found.
framework/console/controllers/HelpController.php
View file @
d471f0ba
...
...
@@ -329,8 +329,14 @@ class HelpController extends Controller
// show as integer to avoid confusion
$defaultValue
=
(
int
)
$defaultValue
;
}
if
(
$type
===
'boolean'
)
{
$type
=
'boolean, 0 or 1'
;
}
$doc
=
"
$type
(defaults to "
.
var_export
(
$defaultValue
,
true
)
.
")"
;
}
elseif
(
trim
(
$type
)
!==
''
)
{
if
(
$type
===
'boolean'
)
{
$type
=
'boolean, 0 or 1'
;
}
$doc
=
$type
;
}
...
...
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