Skip to content

Parameter Comments and Get-Help #161

@aydeisen

Description

@aydeisen

In the Style guide section "Documents and Comments" under the subheading Document Each Parameter, it states that the preferred location for parameter documentation be:

within the param block, directly above each parameter. It is also possible to write .PARAMETER statements with the rest of the documentation comments, but experience shows they are more likely to be kept up-to-date if you put them closer to the code they document."

Wouldn't not populating .PARAMETER prevent someone from seeing any documentation when executing Get-Help -Parameter for the script, function, or module? If yes, what would a better alternative be that would allow Get-Help -Parameter to show the documentation for each parameter while also ensuring the coder does not need to enter the documentation twice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions