8000 [console] Use the description when no help is available · symfony/symfony@0fc7268 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fc7268

Browse files
author
Tristan Darricau
committed
[console] Use the description when no help is available
1 parent 9962f36 commit 0fc7268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Command/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public function setHelp($help)
484484
*/
485485
public function getHelp()
486486
{
487-
return $this->help;
487+
return $this->help ?: $this->description;
488488
}
489489

490490
/**

0 commit comments

Comments
 (0)
0