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
605
+
if ($i-lt$RemainingArgs.Count-1-and ($RemainingArgs[$i+1] -isnot [string] -or!$RemainingArgs[$i+1].StartsWith('-'))) {
606
+
# This is a named parameter with a value
607
+
$SplatArgs[$paramName] =$RemainingArgs[$i+1]
608
+
$i+=2
609
+
} else {
610
+
# This is a switch parameter (flag)
611
+
$SplatArgs[$paramName] =$true
612
+
$i++
613
+
}
614
+
} else {
615
+
# Handle positional parameter
616
+
throw"Positional parameter '$Arg' found. The Invoke-BuildStep function only supports named parameters after the required Name and Platform parameters."
0 commit comments