rabbah opened a new issue #2381: custom parameter parsing in CLI ignores command separators URL: https://github.com/apache/incubator-openwhisk/issues/2381 The parameter parsing that's going on in `commands.go` can lead to surprising results. It ignores `-` and `--` as command separators. For example: ``` > wsk action create echo tests/dat/actions/echo.js ok: created action echo > wsk action invoke echo -p -b -r ok: invoked /_/echo with id 9172aa2c35c34e0eacd031b641e850ee ``` `-b` and `-r` are both CLI parameters for blocking invoke with results projection. They are interpreted however as parameters for the action: ``` > wsk activation result 9172aa2c35c34e0eacd031b641e850ee { "-b": "-r" } ``` This affects both parameters and annotations. ``` > wsk action update echo -p -p -a -a -a -p ok: updated action echo > wsk action get echo annotations ok: got action echo, displaying field annotations [ { "key": "-a", "value": "-p" }, { "key": "exec", "value": "nodejs:6" } ] > wsk action get echo parameters ok: got action echo, displaying field parameters [ { "key": "-p", "value": "-a" } ] ``` This is related to #2380. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
