red-gate / XmlDoc2CmdletDoc

Create cmdlet XML help files from XML doc comments
Other
64 stars 24 forks source link

Parameterless Cmdlets generated with empty <command:syntax/> node #28

Closed VonOgre closed 7 years ago

VonOgre commented 7 years ago

If a parameterless cmdlet is implemented, when the MAML is generated for the help file, this is the entirety of the syntax node:

<command:syntax/>

Instead, I'd expect something more akin to this, so that the syntax is actually displayed when get-help is invoked:

<command:syntax>
      <!-- Parameter set: __AllParameterSets -->
      <command:syntaxItem>
        <maml:name>Get-ParameterlessCmdletResult</maml:name>
      </command:syntaxItem>
</command:syntax>
ChrisLambrou commented 7 years ago

Hi! Thanks for the PR. This has now been release in v 0.2.6. https://www.nuget.org/packages/XmlDoc2CmdletDoc/

VonOgre commented 7 years ago

Many thanks! Glad to help be of service to such a handy library! :)