diff --git a/src/Composer/Command/ExecCommand.php b/src/Composer/Command/ExecCommand.php index fc774d9e0..7e281bb2c 100644 --- a/src/Composer/Command/ExecCommand.php +++ b/src/Composer/Command/ExecCommand.php @@ -58,7 +58,7 @@ EOT return; } - if ($input->getArgument('binary') !== null) { + if ($input->getArgument('binary') !== null || $input->getOption('list')) { return; } diff --git a/src/Composer/Command/RunScriptCommand.php b/src/Composer/Command/RunScriptCommand.php index 950ffcc5d..871579c69 100644 --- a/src/Composer/Command/RunScriptCommand.php +++ b/src/Composer/Command/RunScriptCommand.php @@ -79,7 +79,7 @@ EOT return; } - if ($input->getArgument('script') !== null) { + if ($input->getArgument('script') !== null || $input->getOption('list')) { return; }