Symfony\Component\Console\Descriptor\TextDescriptor::getCommandAliasesText PHP Method

getCommandAliasesText() private method

Formats command aliases to show them in the command description.
private getCommandAliasesText ( Command $command ) : string
$command Symfony\Component\Console\Command\Command
return string
    private function getCommandAliasesText($command)
    {
        $text = '';
        $aliases = $command->getAliases();
        if ($aliases) {
            $text = '[' . implode('|', $aliases) . '] ';
        }
        return $text;
    }