mirror of https://github.com/rectorphp/rector.git
add version on bin/rector [closes #298]
This commit is contained in:
parent
d08b5a0ba9
commit
fe3a6c4775
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue