diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bb5498..be96114 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixed - Bug where ExpressionEngine CLI command proxy was not recognizing optional arguments +- Bug where ExpressionEngine CLI command proxy would fail to handle interactive input ## [1.3.1] - 2024-04-24 diff --git a/src/Commands/EECliCommand.php b/src/Commands/EECliCommand.php index f510749..9873c08 100644 --- a/src/Commands/EECliCommand.php +++ b/src/Commands/EECliCommand.php @@ -24,6 +24,7 @@ public function __construct() } $core = (new \Expressionengine\Coilpack\Bootstrap\LoadExpressionEngine)->cli()->bootstrap(app()); + $GLOBALS['argv'] = array_slice($_SERVER['argv'], 1); $this->cli = $core->runGlobal(); $this->setupCommand($_SERVER['argv'][2] ?? 'list');