Fixes #17133: Fixed aliases rendering during help generation for a console command

This commit is contained in:
Nikolay Poryadin
2019-03-09 15:35:19 +03:00
committed by Alexander Makarov
parent 687f15fbd2
commit 5b5150ae62
4 changed files with 28 additions and 1 deletions

View File

@ -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;
}
}