[Console] Display console application name even when no version set
This commit is contained in:
parent
5d63c554e8
commit
61e810e769
@ -322,10 +322,14 @@ class Application
|
|||||||
*/
|
*/
|
||||||
public function getLongVersion()
|
public function getLongVersion()
|
||||||
{
|
{
|
||||||
if ('UNKNOWN' !== $this->getName() && 'UNKNOWN' !== $this->getVersion()) {
|
if ('UNKNOWN' !== $this->getName()) {
|
||||||
|
if ('UNKNOWN' !== $this->getVersion()) {
|
||||||
return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
|
return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return sprintf('<info>%s</info>', $this->getName());
|
||||||
|
}
|
||||||
|
|
||||||
return '<info>Console Tool</info>';
|
return '<info>Console Tool</info>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user