Skip to content

Commit

Permalink
Use the app's logo in a command's help screen if its the default command
Browse files Browse the repository at this point in the history
  • Loading branch information
kodie committed Nov 26, 2024
1 parent 04cfefd commit 3843419
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Input/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ public function showHelp(): mixed
{
$io = $this->io();
$helper = new OutputHelper($io->writer());
$app = $this->app();

if ($logo = $this->logo()) {
if (($logo = $this->logo()) || ($app && ($logo = $app->logo()) && $app->getDefaultCommand() === $this->_name)) {
$io->write($logo, true);
}

Expand Down

0 comments on commit 3843419

Please sign in to comment.