mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-15 14:20:03 +00:00
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.