diff --git a/src/Command/PluginCommand.php b/src/Command/PluginCommand.php index 3bf567d1..e2365e8d 100644 --- a/src/Command/PluginCommand.php +++ b/src/Command/PluginCommand.php @@ -77,7 +77,7 @@ public function execute(Arguments $args, ConsoleIo $io): ?int } $pluginPath = $this->_pluginPath($plugin); - if (is_dir($pluginPath)) { + if (is_dir($pluginPath) && !$args->getOption('class-only')) { $io->out(sprintf('Plugin: %s already exists, no action taken', $plugin)); $io->out(sprintf('Path: %s', $pluginPath));