Skip to content

Instantly share code, notes, and snippets.

@emyann
Created August 26, 2016 00:23
Show Gist options
  • Save emyann/1b66a7cb2cc24d6c33e9c4177e6ada4b to your computer and use it in GitHub Desktop.
Save emyann/1b66a7cb2cc24d6c33e9c4177e6ada4b to your computer and use it in GitHub Desktop.
<#
.SYNOPSIS
Pretty description of what the script do
.EXAMPLE
PS C:\> .\Script-Boilerplate.ps1 -Option "Value"
.EXAMPLE
$var = @{}
PS C:\> .\Script-Boilerplate.ps1 -Option "Value" -OtherOption $var
#>
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true, HelpMessage="Give an example of a value for this attribute")]
[String]
$Option,
[Parameter(Mandatory = $false, HelpMessage="Give an example of a value for this attribute")]
[PSCredential]
$OtherOption,
[Parameter(Mandatory = $false, HelpMessage="Give a description of what this switch does")]
[switch]
$CustomSwitch
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment