Skip to content

Commit

Permalink
changed the default version if nothing is provided by the developer
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 4, 2010
1 parent f7752f7 commit 1e3e8c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Symfony/Components/CLI/Application.php
Expand Up @@ -304,7 +304,14 @@ public function setVersion($version)
*/
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>';
}
}

/**
Expand Down

0 comments on commit 1e3e8c7

Please sign in to comment.