-
Aaron Jones authored
The entity and action were also being parsed as an invalid parameter. This was fixed by shifting the args array after parsing them. An unassigned $format variable was being referenced inside of the default case for the switch statement if the --in option was neither args nor json. This was fixed by assigning $format to the output of getOption rather than switching on getOption directly. The parameter matching regex had spaces added to it in pull request #110 that caused arguments of the format foo=bar to not be matched correctly, so no parameters were actually being passed to the underlying api method. The spaces were removed from the regex and the parsing worked. Two other regex matches had spaces added to them by pull request #110 that I have not touched, but they seem suspect.