Skip to content

Microsoft.PowerShell.PlatyPS 1.0.1 does not honor [Parameter(DontShow)] #845

@vidai-msft

Description

@vidai-msft

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

function Test-DontShowRepro {
[CmdletBinding()]
param (
[string]$Public,
[Parameter(DontShow)][string]$Hidden,
[Parameter(DontShow)][string]$Break
)
}

$cmd = Get-Command Test-DontShowRepro
New-MarkdownCommandHelp -CommandInfo $cmd -OutputFolder C:\Temp\

There was a similar issue before in the version of platyPS v0.x #444

Expected behavior

The hidden params $Hidden and $Break do not appear in the generated Test-DontShowRepro.md file.

Actual behavior

The hidden params $Hidden and $Break appear in the generated Test-DontShowRepro.md file.

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.5
PSEdition                      Core
GitCommitId                    7.5.5
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

1.0.1

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions