Created
June 2, 2018 14:26
-
-
Save brettmillerb/02486cf4e3d4bc30c33c212063545e2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Do-Something { | |
param ( | |
[Parameter(Mandatory = $True | |
Position = 0)] | |
[string]$Param1, | |
[Parameter(Mandatory = $False, | |
Position = 1)] | |
[string]$Param2 | |
) | |
$Param1 | |
$Param2 | |
} | |
function Do-Something { | |
param ( | |
[Parameter(Mandatory, | |
Position = 0)] | |
[string]$Param1, | |
[Parameter(Position = 1)] | |
[string]$Param2 | |
) | |
$Param1 | |
$Param2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment