Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Comment base help is NOT working as expected.

$
0
0

I'm not getting the correct help info, when I do get-help. Using the below code.  I get some info (NAME, SYNTAX) etc. But I don't see SYNOPSIS & DESCRIPTION. What I'm I doing wrong?

function add-Numbers(){
param($x, $y) 

<#

.SYNOPSIS
Addition 


.DESCRIPTION
Adds two numbers. 

.PARAMETER x
First parameter

.PARAMETER y
Second parameter 

.EXAMPLE
add-Numbers 3 5

#>

return $x + $y 

 

}

cls

get-help add-Numbers


Viewing all articles
Browse latest Browse all 6937

Trending Articles