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
# Check if the next argument is a value for this parameter
659
+
if ($i-lt$RemainingArgs.Count-1-and ($RemainingArgs[$i+1] -isnot [string] -or!$RemainingArgs[$i+1].StartsWith('-'))) {
660
+
# This is a named parameter with a value
661
+
$SplatArgs[$paramName] =$RemainingArgs[$i+1]
662
+
$i+=2
663
+
} else {
664
+
# This is a switch parameter (flag)
665
+
$SplatArgs[$paramName] =$true
666
+
$i++
667
+
}
668
+
} else {
669
+
# Handle positional parameter
670
+
throw"Positional parameter '$Arg' found. The Invoke-BuildStep function only supports named parameters after the required Name and Platform parameters."
0 commit comments