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
Offline help topics do not state parameter aliases, even with "Get-Help -Full"; consider including aliases in the "-Detailed" view #1638
The offline help topics do not include parameter aliases, even when Get-Help -Full is used -
though alias names may be mentioned in the description, that's usually limited to one alias, and often they're not mentioned at all.
changed the title [-]Offline help topics do not state parameter aliases, even with "Get-Help -Full"; consider including aliases in the `-Detailed` view[/-][+]Offline help topics do not state parameter aliases, even with "Get-Help -Full"; consider including aliases in the "-Detailed" view[/+]on Sep 1, 2017
Clarifying question: Is the behavior you're talking about happening when update-help has not been run? Or is it after update-help has run and you are not using the -Online switch? This will determine if this is a help content issue or if this is a code issue in get-help.
The behavior is unrelated to Update-Help or -Online.
Local Get-Help, with the help topic present and even with -Full, simply doesn't display information about parameter aliases - it appears not be part of the output format - hence the suggestion to amend that format to include the alias names.
Sorry - I should have made it clearer that this is a suggested enhancement.
I don't know how the help sausage is made, but it appears to me that the local help is currently not designed to show alias parameters - unlike the online help pages.
Given that knowing a parameter's aliases is helpful and the information is currently difficult to obtain locally, my suggestion is to enhance the local help format to include parameter aliases, as described in the original post - optionally in the new format I suggest.
To contrast the current local help with the online version:
LOCAL: Snippet from Get-Help -Full Get-ChildItem (as of PowerShell Core v6.0.0-beta.8):
NO mention of aliases; also note the broken description ({{Fill Directory Description}}):
-Directory [<SwitchParameter>]
{{Fill Directory Description}}
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
From what I can tell, this is fixed as of (at least) PowerShell Core v6.0.1 - thanks!
E.g., the following commands now work as intended - note the 'Aliases ' output lines:
PS>Get-HelpGet-ChildItem-full |Out-String-Stream |Select-String'^\s+-Directory'-context 0,8>-Directory
Required? false
Position? Named
Accept pipeline input? false
Parameter set name (All)
Aliases ad, d
Dynamic? true
PS>Get-HelpGet-ChildItem-Parameter Directory
-Directory
Required? false
Position? Named
Accept pipeline input? false
Parameter set name (All)
Aliases ad, d
Dynamic? true
Activity
[-]Offline help topics do not state parameter aliases, even with "Get-Help -Full"; consider including aliases in the `-Detailed` view[/-][+]Offline help topics do not state parameter aliases, even with "Get-Help -Full"; consider including aliases in the "-Detailed" view[/+]zjalexander commentedon Oct 11, 2017
Clarifying question: Is the behavior you're talking about happening when update-help has not been run? Or is it after update-help has run and you are not using the -Online switch? This will determine if this is a help content issue or if this is a code issue in get-help.
mklement0 commentedon Oct 11, 2017
The behavior is unrelated to
Update-Helpor-Online.Local
Get-Help, with the help topic present and even with-Full, simply doesn't display information about parameter aliases - it appears not be part of the output format - hence the suggestion to amend that format to include the alias names.zjalexander commentedon Oct 18, 2017
We took a look and it's not clear:
mklement0 commentedon Oct 19, 2017
Sorry - I should have made it clearer that this is a suggested enhancement.
I don't know how the help sausage is made, but it appears to me that the local help is currently not designed to show alias parameters - unlike the online help pages.
Given that knowing a parameter's aliases is helpful and the information is currently difficult to obtain locally, my suggestion is to enhance the local help format to include parameter aliases, as described in the original post - optionally in the new format I suggest.
To contrast the current local help with the online version:
LOCAL: Snippet from
Get-Help -Full Get-ChildItem(as of PowerShell Core v6.0.0-beta.8):NO mention of aliases; also note the broken description (
{{Fill Directory Description}}):ONLINE: Snippet from https://github.com/PowerShell/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Management/Get-ChildItem.md:
Note the
Alias: ad, dline:mklement0 commentedon Feb 18, 2018
From what I can tell, this is fixed as of (at least) PowerShell Core v6.0.1 - thanks!
E.g., the following commands now work as intended - note the 'Aliases ' output lines: