Skip to content

Commit 0bcc02d

Browse files
author
José Valim
committed
Merge pull request #2321 from chyndman/mix-bat-help
elixir.bat defers to mix for handling help options
2 parents ed4ee3f + 1c9dff1 commit 0bcc02d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

bin/elixir.bat

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
@echo off
2-
set argc=0
3-
for %%A in (%*) do (
4-
if "%%A"=="--help" goto documentation
5-
if "%%A"=="-h" goto documentation
6-
if "%%A"=="/h" goto documentation
7-
set /A argc+=1
8-
)
9-
if %argc%==0 goto documentation
2+
3+
if "%*"=="" goto documentation
4+
if "%1"=="--help" goto documentation
5+
if "%1"=="-h" goto documentation
6+
if "%1"=="/h" goto documentation
107
goto parseopts
118

129
:documentation

0 commit comments

Comments
 (0)