Skip to content

Commit 1c9dff1

Browse files
committed
elixir.bat only triggers help at first argument
1 parent 82f800e commit 1c9dff1

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

bin/elixir.bat

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
@echo off
22

3-
rem Mix handles its own help options (as when called by mix.bat)
4-
if not "%1"=="%1:mix%" goto parseopts
5-
6-
set argc=0
7-
for %%A in (%*) do (
8-
if "%%A"=="--help" goto documentation
9-
if "%%A"=="-h" goto documentation
10-
if "%%A"=="/h" goto documentation
11-
set /A argc+=1
12-
)
13-
if %argc%==0 goto documentation
3+
if "%*"=="" goto documentation
4+
if "%1"=="--help" goto documentation
5+
if "%1"=="-h" goto documentation
6+
if "%1"=="/h" goto documentation
147
goto parseopts
158

169
:documentation

0 commit comments

Comments
 (0)