add version on bin/rector [closes #298]

This commit is contained in:
TomasVotruba 2018-02-08 17:41:55 +01:00
parent d08b5a0ba9
commit fe3a6c4775
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
],
"require": {
"php": "^7.1",
"jean85/pretty-package-versions": "^1.1",
"nette/robot-loader": "^3.0",
"nette/utils": "^2.4",
"nikic/php-parser": "4.0.x-dev",

View File

@ -2,6 +2,7 @@
namespace Rector\Console;
use Jean85\PrettyVersions;
use Symfony\Component\Console\Application as SymfonyApplication;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputOption;
@ -15,7 +16,7 @@ final class Application extends SymfonyApplication
public function __construct()
{
parent::__construct(self::NAME);
parent::__construct(self::NAME, PrettyVersions::getVersion('rector/rector')->getPrettyVersion());
}
protected function getDefaultInputDefinition(): InputDefinition