Skip to content

Commit 00299fe

Browse files
Tom JanssensTom Janssens
authored andcommitted
Removed "*.ex/file" parameter checking from elixir.bat
If it now finds an unknown parameter, it assumes all paremeters are parsed and just passes all the rest to the elixir script.
1 parent 9e6b650 commit 00299fe

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bin/elixir.bat

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ for /f "usebackq" %%m in (`echo %par%^|findstr \--remsh`) do (
110110
shift
111111
goto:startloop
112112
)
113-
rem ******* elixir file **********************
114-
for /f "usebackq" %%m in (`echo %par%^|findstr \.ex`) do (
115-
goto:run
116-
)
117-
REM Others should give a problem
118-
echo ERROR: Parameter %par% is not allowed before the .ex file
119-
exit /B -1
113+
rem ******* assume all pre-params are parsed ********************
120114
:run
121115
erl -env ERL_LIBS %ERL_LIBS%;"%originPath%\..\lib" -noshell %ELIXIR_ERL_OPTS% %parsErlang% -s elixir start_cli %beforeExtra% -extra %*

0 commit comments

Comments
 (0)