PSProfiler
PSProfiler copied to clipboard
Ignores script parameter default value
When I add the following code to foo.ps1
and run foo.ps1
, it prints "foo". If I run Measure-Script -Path foo.ps1
, it outputs nothing.
param(
[string]$Foo = 'foo'
)
$Foo
I expect it to output the same thing in both cases. Is this the intended behavior?