mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00
Fixes #17133: Fixed aliases rendering during help generation for a console command
This commit is contained in:

committed by
Alexander Makarov

parent
687f15fbd2
commit
5b5150ae62
@ -532,7 +532,7 @@ class HelpController extends Controller
|
||||
protected function formatOptionAliases($controller, $option)
|
||||
{
|
||||
foreach ($controller->optionAliases() as $name => $value) {
|
||||
if ($value === $option) {
|
||||
if (Inflector::camel2id($value, '-', true) === $option) {
|
||||
return ', -' . $name;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user