Powershell Best Practice #22: Use a parameter alias for backwards compatibility

By | October 7, 2015

Best Practice: You should use a parameter alias in case you decide to rename a parameter for backwards compatibility.

Explanation: If you rename a parameter used in different externals scripts, it will fail.


By adding a parameter alias you provide backwards compatibility.




Leave a Reply

Your email address will not be published. Required fields are marked *