Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
provide a better error when no value is passed to Set-BuildtimeEnv or Set-RuntimeEnv #6684
davidMcneil left a comment •
I will preface this by saying I know next to nothing about PowerShell, but am interested in learning more.
Is there a reason we can not make $VarValue a mandatory parameter?
I assume default parameter expressions are only evaluated if no parameter is supplied? I know in some languages they are eagerly evaluated, but this does not appear to be the case.
I hope you dont mind me using this as an opportunity to learn.