Closed PrzemyslawKlys closed 3 years ago
It seems that ConvertToSplat does automatic conversion to $true when you use something along the lines
function Test { param( [switch] $Test ) Test -Test:$Test.IsPresent }
to
function Test { param( [switch] $Test ) $testSplat = @{ Test = $true } Test @testSplat }
It seems that ConvertToSplat does automatic conversion to $true when you use something along the lines
to