-
Notifications
You must be signed in to change notification settings - Fork 292
Description
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?