Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Console/Command/ProcessCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ protected function configure(): void

protected function execute(InputInterface $input, OutputInterface $output): int
{
// "-n" is the "--dry-run" shortcut here, but means "--no-interaction" in most CLI tools;
// warn and steer to the explicit flag, to be removed in the next major version
if ($input->hasParameterOption('-n', true)) {
$this->symfonyStyle->getErrorStyle()
->warning(
'The "-n" shortcut for "--dry-run" is deprecated and will be removed, as it means "--no-interaction" in most CLI tools. Use "--dry-run" instead.'
);
}

// missing config? add it :)
if (! $this->configInitializer->areSomeRectorsLoaded()) {
$this->configInitializer->createConfig(getcwd());
Expand Down
Loading