diff --git a/.github/workflows/e2e_command_with_option.yaml b/.github/workflows/e2e_command_with_option.yaml index 07495e42b7f..81e5710a729 100644 --- a/.github/workflows/e2e_command_with_option.yaml +++ b/.github/workflows/e2e_command_with_option.yaml @@ -50,6 +50,8 @@ jobs: php ../../bin/rector process some_file.php --output-format json php ../../bin/rector process some_file.php --output-format=json + php ../../bin/rector p some_file.php --output-format=json + # with implicit process command ../../bin/rector --output-format json --dry-run ../../bin/rector --output-format=json --dry-run diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index 6f6edea58ef..a8e7451628f 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -54,6 +54,7 @@ public function __construct( protected function configure(): void { $this->setName('process'); + $this->setAliases(['p']); $this->setDescription('Upgrades or refactors source code with provided Rector rules'); $this->setHelp( <<<'EOF'