Skip to content

Commit 6c0899f

Browse files
author
Philip Sampaio
committed
Ignore standalone options for help in the loop
1 parent b6b40e4 commit 6c0899f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/elixir.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ for ($i = 0; $i -lt $Args.Count; $i++) {
129129
break
130130
}
131131

132-
{ $_ -in @("-v", "--version", "--help", "-h") } {
132+
{ $_ -in @("-v", "--version") } {
133133
# Standalone options goes only once in the Elixir params, when they are empty.
134-
if ($ElixirParams.Count -eq 0) {
134+
if (($ElixirParams.Count -eq 0) -and ($AllOtherParams.Count -eq 0)) {
135135
$ElixirParams.Add($Arg)
136136
}
137137
else {

0 commit comments

Comments
 (0)