I cannot seem to produce documentation, using PlatyPS 0.14.2 using 2.0 schema, that includes Parameter Sets.
I took this function from the PowerShell v5.1 documentation and placed it in a Module. The parameter sets show up in the ISE command sidebar as expected, but not in the popup help nor in the command-line Get-Help -Full after generating the xml from PlatyPS and placing all the files in the correct locations. The syntax shows the four different syntaxes for the sets but the individual parameters do not have the Parameter set name.
This is from Format-SecureBootUEFI, this is what I am expecting:
PARAMETERS
-Algorithm <string>
Required? true
Position? Named
Accept pipeline input? false
Parameter set name FormatForHashes
Aliases alg
Dynamic? false
-AppendWrite
Required? false
Position? Named
Accept pipeline input? false
Parameter set name FormatForHashes, FormatForCertificates
Aliases append
Dynamic? false
-CertificateFilePath <string[]>
Required? true
Position? Named
Accept pipeline input? false
Parameter set name FormatForCertificates
Aliases c
Dynamic? false
-ContentFilePath <string>
Required? false
Position? Named
Accept pipeline input? false
Parameter set name FormatForCertificates, FormatForHashes
Aliases f
Dynamic? false
-Delete
Required? true
Position? Named
Accept pipeline input? false
Parameter set name FormatForDelete
Aliases del
Dynamic? false
-FormatWithCert
Required? false
Position? Named
Accept pipeline input? false
Parameter set name FormatForCertificates
Aliases cert
Dynamic? false
-Hash <string[]>
Required? true
Position? Named
Accept pipeline input? false
Parameter set name FormatForHashes
Aliases h
Dynamic? false
-Name <string>
Required? true
Position? Named
Accept pipeline input? true (ByValue)
Parameter set name (All)
Aliases n
Dynamic? false
-SignableFilePath <string>
Required? false
Position? Named
Accept pipeline input? false
Parameter set name (All)
Aliases s
Dynamic? false
-SignatureOwner <guid>
Required? true
Position? Named
Accept pipeline input? false
Parameter set name FormatForCertificates, FormatForHashes
Aliases g
Dynamic? false
-Time <string>
Required? false
Position? Named
Accept pipeline input? false
Parameter set name (All)
Aliases t
Dynamic? false
Also, a side questions - is Dynamic parameters support in 0.14.2 - I believe the answer is no, just wanted to confirm that as well.
Prerequisites
Steps to reproduce
I cannot seem to produce documentation, using PlatyPS 0.14.2 using 2.0 schema, that includes Parameter Sets.
I took this function from the PowerShell v5.1 documentation and placed it in a Module. The parameter sets show up in the ISE command sidebar as expected, but not in the popup help nor in the command-line
Get-Help -Full
after generating the xml from PlatyPS and placing all the files in the correct locations. The syntax shows the four different syntaxes for the sets but the individual parameters do not have theParameter set name
.Am I missing something?
This is from
Format-SecureBootUEFI
, this is what I am expecting:Also, a side questions - is Dynamic parameters support in 0.14.2 - I believe the answer is no, just wanted to confirm that as well.
Cheers, Noral
Expected behavior
Actual behavior
Error details
Environment data