Skip to content

Commit 147b16f

Browse files
committed
Counting positional parameters fix.
1 parent 014dd71 commit 147b16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/Helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ public bool PositionalParameterUsed(CommandAst cmdAst, bool moreThanTwoPositiona
657657
argumentsWithoutProcedingParameters += 1;
658658
}
659659

660-
return moreThanTwoPositional ? argumentsWithoutProcedingParameters >= 3 : argumentsWithoutProcedingParameters > 0;
660+
return moreThanTwoPositional ? argumentsWithoutProcedingParameters > 2 : argumentsWithoutProcedingParameters > 0;
661661
}
662662

663663

0 commit comments

Comments
 (0)