PowerShell / Crescendo

a module for wrapping native applications in a PowerShell function and module
MIT License
399 stars 37 forks source link

Fix for issue 101 - Default values are not provided. #106

Closed JamesWTruher closed 3 years ago

JamesWTruher commented 3 years ago

Needed to find a way to find the parameters which had a default value. Using the PSDefaultValue attribute to annotate when a default value was provided. This is then searched for an added to the bound parameters collection if it wasn't already present.