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. |
||
---|---|---|
.. | ||
BooleanParameterDCR.Tests.ps1 | ||
NullableBooleanDCR.Tests.ps1 | ||
ParameterBinding.Tests.ps1 | ||
Splatting.Tests.ps1 | ||
StaticParameterBinder.Tests.ps1 |