Skip to content

Instantly share code, notes, and snippets.

@brettmillerb
Created June 2, 2018 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettmillerb/02486cf4e3d4bc30c33c212063545e2c to your computer and use it in GitHub Desktop.
Save brettmillerb/02486cf4e3d4bc30c33c212063545e2c to your computer and use it in GitHub Desktop.
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