sshkit icon indicating copy to clipboard operation
sshkit copied to clipboard

Feature: Add a DEBUG/INFO note to the log when execute() is passed arguments that won't be mapped.

Open seenmyfate opened this issue 12 years ago • 3 comments

Originally raised on Cap issues

seenmyfate avatar Dec 20 '13 14:12 seenmyfate

Explanation: this was supposed to be so that option hashes passed with bogus keys would result in a warning. When @seenmyfate and I wrote that issue at Capistrano Ruby 2.x with keyword arguments wasn't a think, and I don't think that strong_params even existed, maybe one of those two new things gives us something to work with?

leehambley avatar Feb 21 '16 18:02 leehambley

I've never come across a case where an options hash was passed to execute (although looking at the code, I see that it's possible), so I'm not sure what confusion/problems people are having with this.

Also, since backends are pluggable, it is possible that different backends will have different requirements/expectations for execute options, which makes it hard to enforce a standard policy.

mattbrictson avatar Feb 22 '16 16:02 mattbrictson

Agreed

leehambley avatar Feb 22 '16 18:02 leehambley