Skip to content

Commit 1af84ff

Browse files
committed
fix class only generate not working
1 parent 88a6118 commit 1af84ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/PluginCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function execute(Arguments $args, ConsoleIo $io): ?int
7777
}
7878

7979
$pluginPath = $this->_pluginPath($plugin);
80-
if (is_dir($pluginPath)) {
80+
if (is_dir($pluginPath) && !$args->getOption('class-only')) {
8181
$io->out(sprintf('Plugin: %s already exists, no action taken', $plugin));
8282
$io->out(sprintf('Path: %s', $pluginPath));
8383

0 commit comments

Comments
 (0)