Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit b11c1ec

Browse files
authored
Show "(legacy)" in the version output, if not wrapped. (#1520)
1 parent a1cead4 commit b11c1ec

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Application.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,4 +532,13 @@ public function setRunningViaMulti()
532532
{
533533
$this->runningViaMulti = true;
534534
}
535+
536+
public function getLongVersion()
537+
{
538+
// Show "(legacy)" in the version output, if not wrapped.
539+
if (!$this->cliConfig->isWrapped()) {
540+
return sprintf('%s (legacy) <info>%s</info>', $this->cliConfig->get('application.name'), $this->cliConfig->getVersion());
541+
}
542+
return sprintf('%s <info>%s</info>', $this->cliConfig->get('application.name'), $this->cliConfig->getVersion());
543+
}
535544
}

0 commit comments

Comments
 (0)