DocTreeGenerator
DocTreeGenerator copied to clipboard
Wildcard in Namespace selector should be resolved before using for page title
If multiple namespaces are specified for the Namespaces parameter, the page title for the home and contents pages is just the DocTitle parameter (or default). But if there is only a single namespace specified, the page title is that single namespace concatenated with the DocTitle parameter (or default). This determination is made on the literal Namespaces value passed in, even if it contains globbing wildcards and thus might resolve to multiple namespaces.
While technically that approach is valid, it would be more natural that the following two commands produce the same behavior:
PS> Convert-HelpToHtmlTree -Namespaces ns1, ns2
PS> Convert-HelpToHtmlTree -Namespaces ns*
Which is to say, to determine that multiple namespaces have been specified.