Skip to content

Commit ad42f69

Browse files
author
spdionis
committed
tests pass
1 parent 9a22ce4 commit ad42f69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Symfony/Component/Console/Descriptor/TextDescriptor.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,13 @@ protected function describeApplication(Application $application, array $options
195195
// add commands by namespace
196196
foreach ($description->getNamespaces() as $namespace) {
197197
if (!$describedNamespace && ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
198-
$this->writeText("\n");
199-
$this->writeText('<comment>'.$namespace['id'].'</comment>', $options);
198+
$this->writeText("\n<comment>", $options);
199+
$this->writeText($namespace['id'], array_merge($options, array('raw_output' => true)));
200+
$this->writeText("</comment>", $options);
200201
}
201202

202203
foreach ($namespace['commands'] as $name) {
203-
$this->writeText("\n <info>");
204+
$this->writeText("\n <info>", $options);
204205
$this->writeText(sprintf("%-${width}s", $name), array_merge($options, array('raw_output' => true)));
205206
$this->writeText(sprintf("</info> %s", $description->getCommand($name)->getDescription()), $options);
206207
}

0 commit comments

Comments
 (0)