Skip to content

Commit 27b1c18

Browse files
authored
Merge pull request #1062 from cakephp/3.x-fix-class-only
fix class only generate not working
2 parents f6dc5f8 + 1af84ff commit 27b1c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)