diff --git a/src/CliRunner.class.php b/src/CliRunner.class.php index d63e7b5..e678781 100644 --- a/src/CliRunner.class.php +++ b/src/CliRunner.class.php @@ -25,7 +25,8 @@ function applyParamsFromFile($file_name) function setCliParams(array $argv) { - $this->command = array_shift(self::parseArgs($argv)); + $parsedArgs = self::parseArgs($argv); + $this->command = array_shift( $parsedArgs); $this->params = array_slice(self::parseArgs($argv), 1); }