mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Tweak help formatting script to be more StrictMode tolerant (#10563)
This commit is contained in:
committed by
Aditya Patwardhan
parent
d7458c45b2
commit
5a236f7d2f
+2
-1
@@ -139,7 +139,8 @@ if (($_.relatedLinks -ne $()) -and ($_.relatedLinks.navigationLink -ne $()) -and
|
||||
var MamlParameterControl = CustomControl.Create()
|
||||
.StartEntry()
|
||||
.AddScriptBlockExpressionBinding(
|
||||
@"$optional = $_.required -ne 'true'
|
||||
@"Set-StrictMode -Off
|
||||
$optional = $_.required -ne 'true'
|
||||
$positional = (($_.position -ne $()) -and ($_.position -ne '') -and ($_.position -notmatch 'named') -and ([int]$_.position -ne $()))
|
||||
$parameterValue = if ($null -ne $_.psobject.Members['ParameterValueGroup']) {
|
||||
"" {$($_.ParameterValueGroup.ParameterValue -join ' | ')}""
|
||||
|
||||
Reference in New Issue
Block a user