mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix Get-Help not properly displaying if parameter supports wildcards (#13353)
This commit is contained in:
@@ -614,6 +614,33 @@ Describe 'get-help other tests' -Tags "CI" {
|
||||
It '$x.Parameters.parameter[2].defaultValue' { $x.Parameters.parameter[2].defaultValue | Should -BeExactly 'parameter is mandatory' }
|
||||
}
|
||||
|
||||
Context 'get-help helpFunc14' {
|
||||
function helpFunc14
|
||||
{
|
||||
param(
|
||||
[SupportsWildcards()]
|
||||
$p1
|
||||
)
|
||||
}
|
||||
|
||||
$x = Get-Help helpFunc14
|
||||
|
||||
It '$x.Parameters.parameter[0].globbing' { $x.Parameters.parameter[0].globbing | Should -BeExactly 'true' }
|
||||
}
|
||||
|
||||
Context 'get-help helpFunc15' {
|
||||
function helpFunc15
|
||||
{
|
||||
param(
|
||||
$p1
|
||||
)
|
||||
}
|
||||
|
||||
$x = Get-Help helpFunc15
|
||||
|
||||
It '$x.Parameters.parameter[0].globbing' { $x.Parameters.parameter[0].globbing | Should -BeExactly 'false' }
|
||||
}
|
||||
|
||||
Context 'get-help -Examples prompt string should have trailing space' {
|
||||
function foo {
|
||||
<#
|
||||
|
||||
Reference in New Issue
Block a user