You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PlatyPS needs to create help for dynamic parameters #245
Providers can have different parameter sets for some cmdlets, such as the Certificate provider or the Registry provider. That is defined in an XML section. Our current solution to generate help for this set of content is to copy the XML out of one file and paste it into the latest version of help. As the UserVoice entries indicate, this is .... not scaling successfully.
Almost! Providers can add parameters to a cmdlet dynamically. To cover this in help, we added custom cmdlet help for providers and nested it in provider help XML. To make it work, the provider has to implement the ICmdletProviderSupportsHelp interface. I think all of the core providers did that by the close of 3.0.
Back in 3.0, I used a web-based tool (Wassim's?) to write and generate the custom cmdlet help for each provider. Then, I wrote a script that added the provider help to each cmdlet help XML file. It should be in the directory of help automation scripts that I left.
Our current standard is to document all parameters for all supported providers. The documentation indicates which provider the parameter comes from. We need a way for PlatyPS to discover the dynamic parameters during new and update workflows.
PlatyPS could loop through all known (shipped with PowerShell) providers to discover provider-based dynamic parameters, but there is no way to discover parameters that are not provider-based.
Therefore, documenting dynamic parameters is left as a task for the author. The Update command in PlatyPS is designed to add new information but doesn't remove parameters that exist in the markdown but aren't discovered.
Activity
[-]PLatyPS needs to handle dynamic help[/-][+]PlatyPS needs to handle dynamic help[/+]vors commentedon Dec 21, 2016
What exactly support for dynamic help means?
Can you elaborate please.
zjalexander commentedon Jan 3, 2017
Providers can have different parameter sets for some cmdlets, such as the Certificate provider or the Registry provider. That is defined in an XML section. Our current solution to generate help for this set of content is to copy the XML out of one file and paste it into the latest version of help. As the UserVoice entries indicate, this is .... not scaling successfully.
cc Joey Aiello (@joeyaiello) and June Blender (@juneb) to both check my accuracy and because they are interested in this
juneb commentedon Jan 4, 2017
Almost! Providers can add parameters to a cmdlet dynamically. To cover this in help, we added custom cmdlet help for providers and nested it in provider help XML. To make it work, the provider has to implement the ICmdletProviderSupportsHelp interface. I think all of the core providers did that by the close of 3.0.
https://blogs.msdn.microsoft.com/powershell/2009/05/28/adding-custom-cmdlet-help-for-providers/
Back in 3.0, I used a web-based tool (Wassim's?) to write and generate the custom cmdlet help for each provider. Then, I wrote a script that added the provider help to each cmdlet help XML file. It should be in the directory of help automation scripts that I left.
Let me know if you need anything else.
ElinoraWhite commentedon Dec 14, 2017
Related to #111
sdwheeler commentedon Apr 4, 2022
Our current standard is to document all parameters for all supported providers. The documentation indicates which provider the parameter comes from. We need a way for PlatyPS to discover the dynamic parameters during new and update workflows.
[-]PlatyPS needs to handle dynamic help[/-][+]PlatyPS needs to create help for dynamic parameters[/+]sdwheeler commentedon Jul 30, 2025
PlatyPS could loop through all known (shipped with PowerShell) providers to discover provider-based dynamic parameters, but there is no way to discover parameters that are not provider-based.
Therefore, documenting dynamic parameters is left as a task for the author. The Update command in PlatyPS is designed to add new information but doesn't remove parameters that exist in the markdown but aren't discovered.