Skip to content

Commit 314861b

Browse files
authored
feat: add some help on the default process command (#6226)
1 parent db11aa5 commit 314861b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Console/Command/ProcessCommand.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@ protected function configure(): void
4949
{
5050
$this->setName('process');
5151
$this->setDescription('Upgrades or refactors source code with provided rectors');
52+
$this->setHelp(<<<'EOF'
53+
The <info>%command.name%</info> command will run Rector main feature:
54+
55+
<info>%command.full_name%</info>
56+
57+
To specify a folder or a file, you can run:
58+
59+
<info>%command.full_name% src/Controller</info>
60+
61+
You can also dry run to see the changes that Rector will make with the <comment>--dry-run</comment> option:
62+
63+
<info>%command.full_name% src/Controller --dry-run</info>
64+
65+
It's also possible to get debug via the <comment>--debug</comment> option:
66+
67+
<info>%command.full_name% src/Controller --dry-run --debug</info>
68+
EOF
69+
);
5270

5371
ProcessConfigureDecorator::decorate($this);
5472

0 commit comments

Comments
 (0)