Help Transpiler
The Help Transpiler allows you to write inline help without directly writing comments.
EXAMPLE 1
{
[Help(Synopsis="The Synopsis", Description="A Description")]
param()
"This Script Has Help, Without Directly Writing Comments"
} | .>PipeScriptEXAMPLE 2
{
param(
[Help(Synopsis="X Value")]
$x
)
} | .>PipeScriptEXAMPLE 3
{
param(
[Help("X Value")]
$x
)
} | .>PipeScriptThe synopsis of the help topic
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[String] |
true | 1 | false |
The description of the help topic
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[String] |
false | named | false |
One or more examples
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[String[]] |
false | named | false |
One or more links
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[String[]] |
false | named | false |
A ScriptBlock. If this is provided, the help will be added to this scriptblock.
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[ScriptBlock] |
false | named | true (ByValue) |
Help [-Synopsis] <String> [-Description <String>] [-Example <String[]>] [-Link <String[]>] [<CommonParameters>]Help [-Synopsis] <String> [-Description <String>] [-Example <String[]>] [-Link <String[]>] [-ScriptBlock <ScriptBlock>] [<CommonParameters>]