From 37b9704fbbeffb63a7037f91bdbdf5121c7b4aa7 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 17 Oct 2023 18:34:23 +0800 Subject: [PATCH] move option `rebuild` add position --- src/SPC/command/BuildCliCommand.php | 1 - src/SPC/command/BuildCommand.php | 1 + src/SPC/command/BuildLibsCommand.php | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SPC/command/BuildCliCommand.php b/src/SPC/command/BuildCliCommand.php index 42a3b5af..db08187f 100644 --- a/src/SPC/command/BuildCliCommand.php +++ b/src/SPC/command/BuildCliCommand.php @@ -23,7 +23,6 @@ class BuildCliCommand extends BuildCommand { $this->addArgument('extensions', InputArgument::REQUIRED, 'The extensions will be compiled, comma separated'); $this->addOption('with-libs', null, InputOption::VALUE_REQUIRED, 'add additional libraries, comma separated', ''); - $this->addOption('rebuild', 'r', null, 'Delete old build and rebuild'); $this->addOption('build-micro', null, null, 'build micro'); $this->addOption('build-cli', null, null, 'build cli'); $this->addOption('build-fpm', null, null, 'build fpm'); diff --git a/src/SPC/command/BuildCommand.php b/src/SPC/command/BuildCommand.php index 98bb77b3..0c985b13 100644 --- a/src/SPC/command/BuildCommand.php +++ b/src/SPC/command/BuildCommand.php @@ -30,5 +30,6 @@ abstract class BuildCommand extends BaseCommand $this->addOption('with-clean', null, null, 'fresh build, remove `source` dir before `make`'); $this->addOption('bloat', null, null, 'add all libraries into binary'); + $this->addOption('rebuild', 'r', null, 'Delete old build and rebuild'); } } diff --git a/src/SPC/command/BuildLibsCommand.php b/src/SPC/command/BuildLibsCommand.php index dc3989e6..be49f86a 100644 --- a/src/SPC/command/BuildLibsCommand.php +++ b/src/SPC/command/BuildLibsCommand.php @@ -20,7 +20,6 @@ class BuildLibsCommand extends BuildCommand $this->addArgument('libraries', InputArgument::REQUIRED, 'The libraries will be compiled, comma separated'); $this->addOption('clean', null, null, 'Clean old download cache and source before fetch'); $this->addOption('all', 'A', null, 'Build all libs that static-php-cli needed'); - $this->addOption('rebuild', 'r', null, 'Delete old build and rebuild'); } public function initialize(InputInterface $input, OutputInterface $output): void