diff --git a/app/Console/Commands/Plugin/InstallPluginCommand.php b/app/Console/Commands/Plugin/InstallPluginCommand.php index a448db58e..d5c367a63 100644 --- a/app/Console/Commands/Plugin/InstallPluginCommand.php +++ b/app/Console/Commands/Plugin/InstallPluginCommand.php @@ -8,13 +8,13 @@ use Illuminate\Console\Command; class InstallPluginCommand extends Command { - protected $signature = 'p:plugin:install {--id=}'; + protected $signature = 'p:plugin:install {id?}'; protected $description = 'Installs a plugin'; public function handle(): void { - $id = $this->option('id') ?? $this->choice('Plugin', Plugin::pluck('name', 'id')->toArray()); + $id = $this->argument('id') ?? $this->choice('Plugin', Plugin::pluck('name', 'id')->toArray()); /** @var ?Plugin $plugin */ $plugin = Plugin::where('id', $id)->first(); diff --git a/app/Console/Commands/Plugin/UpdatePluginCommand.php b/app/Console/Commands/Plugin/UpdatePluginCommand.php index 09c5ac8ce..6989d806d 100644 --- a/app/Console/Commands/Plugin/UpdatePluginCommand.php +++ b/app/Console/Commands/Plugin/UpdatePluginCommand.php @@ -8,13 +8,13 @@ use Illuminate\Console\Command; class UpdatePluginCommand extends Command { - protected $signature = 'p:plugin:update {--id=}'; + protected $signature = 'p:plugin:update {id?}'; protected $description = 'Updates a plugin'; public function handle(): void { - $id = $this->option('id') ?? $this->choice('Plugin', Plugin::pluck('name', 'id')->toArray()); + $id = $this->argument('id') ?? $this->choice('Plugin', Plugin::pluck('name', 'id')->toArray()); /** @var ?Plugin $plugin */ $plugin = Plugin::where('id', $id)->first();