Created
September 23, 2019 19:22
-
-
Save jrich523/132918a66aeed0e1b3c072082d1d35fc to your computer and use it in GitHub Desktop.
param sets
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
[Parameter(Mandatory=$true, | |
Position=0, | |
ParameterSetName='P1')] | |
[ValidatePattern("\w{2,5}")] | |
[string] | |
$Board, | |
# Param2 help description | |
[Parameter(Mandatory=$true, | |
Position=1, | |
ParameterSetName='P1')] | |
[ValidateRange(0,99999)] | |
[int] | |
$ID, | |
# Param3 help description | |
[Parameter(Mandatory=$true, | |
Position=0,ParameterSetName='P2')] | |
[ValidatePattern("\d{1,5}")] | |
[int] | |
$SEID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment