Skip to content

Latest commit

 

History

History
93 lines (70 loc) · 1.83 KB

File metadata and controls

93 lines (70 loc) · 1.83 KB

Help

Synopsis

Help Transpiler


Description

The Help Transpiler allows you to write inline help without directly writing comments.


Examples

EXAMPLE 1

{
    [Help(Synopsis="The Synopsis", Description="A Description")]
    param()
"This Script Has Help, Without Directly Writing Comments"
    
} | .>PipeScript

EXAMPLE 2

{
    param(
    [Help(Synopsis="X Value")]
    $x
    )
} | .>PipeScript

EXAMPLE 3

{
    param(
    [Help("X Value")]
    $x
    )
} | .>PipeScript

Parameters

Synopsis

The synopsis of the help topic

Type Required Position PipelineInput
[String] true 1 false

Description

The description of the help topic

Type Required Position PipelineInput
[String] false named false

Example

One or more examples

Type Required Position PipelineInput
[String[]] false named false

Link

One or more links

Type Required Position PipelineInput
[String[]] false named false

ScriptBlock

A ScriptBlock. If this is provided, the help will be added to this scriptblock.

Type Required Position PipelineInput
[ScriptBlock] false named true (ByValue)

Syntax

Help [-Synopsis] <String> [-Description <String>] [-Example <String[]>] [-Link <String[]>] [<CommonParameters>]
Help [-Synopsis] <String> [-Description <String>] [-Example <String[]>] [-Link <String[]>] [-ScriptBlock <ScriptBlock>] [<CommonParameters>]