Skip to content

Instantly share code, notes, and snippets.

@jrich523
Created September 23, 2019 19:22
Show Gist options
  • Save jrich523/132918a66aeed0e1b3c072082d1d35fc to your computer and use it in GitHub Desktop.
Save jrich523/132918a66aeed0e1b3c072082d1d35fc to your computer and use it in GitHub Desktop.
param sets
[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