Allow explicitly specified named parameter to supersede the same one from hashtable splatting. The work is done in parameter binder, so that parameters can be resolved to cover a parameter's official name, alias name, and unambiguous partial prefix name. The changes covers covers Hashtable splatting in 3 scenarios: - Cmdlet or advanced script invocation; - Simple function invocation; - ScriptBlock.GetPowerShell(...), where the script block contains command invocation only and uses Hashtable splatting. Some code refactoring is done to ParameterBinderController to avoid redundant code being duplicated in CmdletParameterBinderController and ScriptParameterBinderController. |
||
---|---|---|
.. | ||
Api | ||
Basic | ||
Cdxml | ||
COM | ||
ETS | ||
ExperimentalFeature | ||
Formatting | ||
Help | ||
Job | ||
Module | ||
ParameterBinding | ||
Remoting | ||
ResourceValidation | ||
Security |