|
@@ -304,7 +304,14 @@ class Application
|
|
|
*/
|
|
|
public function getLongVersion()
|
|
|
{
|
|
|
- return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
|
|
|
+ if ('UNKNOWN' !== $this->getName() && 'UNKNOWN' !== $this->getVersion())
|
|
|
+ {
|
|
|
+ return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return '<info>CLI Tool</info>';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|