red-gate / XmlDoc2CmdletDoc

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

Adding support for nullable types #2

Closed msorens closed 8 years ago

msorens commented 8 years ago

For a parameter of a nullable type, the base code help text displayed: PS> Get-Help Test-ManualElements -param NullableParameter -NullableParameter <Nullable`1>

The revised code will recognize when a parameter is a nullable type and display the underlying type instead. In the test example that is an integer: PS> Get-Help Test-ManualElements -param NullableParameter -NullableParameter

The fact that the type is nullable is typically of no interest to the end-user so this is a much more useful output.

ChrisLambrou commented 8 years ago

Replaced by #3, which is on a branch, so it can go through our internal review process.