From 1af84ff22a4fba64cec445fe48cadcf9ceacd4e2 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sun, 9 Nov 2025 16:42:29 +0100 Subject: [PATCH] fix class only generate not working --- src/Command/PluginCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));