diff --git a/src/Composer/Command/ExecCommand.php b/src/Composer/Command/ExecCommand.php index 905b28b99..fc774d9e0 100644 --- a/src/Composer/Command/ExecCommand.php +++ b/src/Composer/Command/ExecCommand.php @@ -58,6 +58,10 @@ EOT return; } + if ($input->getArgument('binary') !== null) { + return; + } + $io = $this->getIO(); /** @var string $binary */ $binary = $io->select( diff --git a/src/Composer/Command/RunScriptCommand.php b/src/Composer/Command/RunScriptCommand.php index 20c419500..950ffcc5d 100644 --- a/src/Composer/Command/RunScriptCommand.php +++ b/src/Composer/Command/RunScriptCommand.php @@ -79,6 +79,10 @@ EOT return; } + if ($input->getArgument('script') !== null) { + return; + } + $options = []; foreach ($scripts as $script) { $options[$script['name']] = $script['description'];