-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Interactive-HelpSystemhelp infrastructure and formatting of helphelp infrastructure and formatting of help
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
A non-advanced function (or script) by definition doesn't support common parameters.
Yet, if a non-advanced function has comment-based help, its syntax diagram shows [<CommonParameters>]
- when invoked via -?
or Get-Help
(but not with Get-Command -Syntax
) - mistakenly suggesting that they are supported:
function Get-Foo { <#.SYNOPSIS #> }; Get-Help Get-Foo
Expected behavior
NAME
Get-Foo
SYNOPSIS
SYNTAX
Get-Foo
DESCRIPTION
RELATED LINKS
REMARKS
To see the examples, type: "Get-Help Get-Foo -Examples"
For more information, type: "Get-Help Get-Foo -Detailed"
For technical information, type: "Get-Help Get-Foo -Full"
Actual behavior
NAME
Get-Foo
SYNOPSIS
SYNTAX
Get-Foo [<CommonParameters>]
DESCRIPTION
RELATED LINKS
REMARKS
To see the examples, type: "Get-Help Get-Foo -Examples"
For more information, type: "Get-Help Get-Foo -Detailed"
For technical information, type: "Get-Help Get-Foo -Full"
Error details
No response
Environment data
PowerShell Core 7.3.0-preview.3
Visuals
No response
briantist, santisq, vexx32 and ThomasNieto
Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Interactive-HelpSystemhelp infrastructure and formatting of helphelp infrastructure and formatting of help