diff --git a/src/GetBinaryCommand.php b/src/GetBinaryCommand.php index 23bf2f0..e1a8e1c 100644 --- a/src/GetBinaryCommand.php +++ b/src/GetBinaryCommand.php @@ -93,6 +93,13 @@ protected function configure(): void InputOption::VALUE_OPTIONAL, 'Generate configuration with plugins in a selected preset.' ); + + $this->addOption( + 'no-config', + null, + InputOption::VALUE_NONE, + 'Do not generate configuration at all.' + ); } /** @@ -227,7 +234,7 @@ private function installConfig(string $to, InputInterface $in, StyleInterface $i return false; } - if (! $io->confirm('Do you want create default ".rr.yaml" configuration file?', true)) { + if ($in->getOption('no-config') || ! $io->confirm('Do you want create default ".rr.yaml" configuration file?', true)) { return false; }