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
if ($NextArg-is [string] -and!$NextArg.StartsWith('-')) {
660
+
$SplatArgs[$ParamName] =$NextArg
661
+
$Enumerator.MoveNext() # Skip NextArg
662
+
continue
663
+
}
668
664
}
665
+
# Must be a flag.
666
+
$SplatArgs[$ParamName] =$true
669
667
} else {
670
-
# Handle positional parameter
671
668
throw"Positional parameter '$Arg' found. The Invoke-BuildStep function only supports named parameters after the required Name and Platform parameters."
0 commit comments