File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed
Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 11@ echo off
2- if " %* " == " " (
3- goto documentation
2+ set argc = 0
3+ for %%x in (%* ) do set /A argc += 1
4+ if %argc% == 0 (
5+ goto documentation
46) else (
5- goto run
6- )
7+ goto run
8+ )
79:documentation
810echo Usage: %~nx0 [options] [.exs file] [data]
911echo .
@@ -20,4 +22,4 @@ echo ** Options marked with (*) can be given more than once
2022echo ** Options given after the .exs file or -- are passed down to the executed code
2123echo ** Options can be passed to the erlang runtime using ELIXIR_ERL_OPTS
2224:run
23- erl -env ERL_LIBS %ERL_LIBS% ;" %~dp0 \..\lib" -noshell %ELIXIR_ERL_OPTS% -s elixir start_cli -extra %*
25+ erl -env ERL_LIBS %ERL_LIBS% ;" %~dp0 \..\lib" -noshell %ELIXIR_ERL_OPTS% -s elixir start_cli -extra %*
Original file line number Diff line number Diff line change 11@ echo off
2- if " %* " == " " (
3- goto documentation
2+ set argc = 0
3+ for %%x in (%* ) do set /A argc += 1
4+ if %argc% == 0 (
5+ goto documentation
46) else (
5- goto run
6- )
7+ goto run
8+ )
79:documentation
810echo Usage: %~nx0 [elixir switches] [compiler switches] [.ex files]
911echo .
@@ -16,4 +18,4 @@ echo ** Options marked with (*) can be given more than once
1618echo ** Options given after -- are passed down to the executed code
1719echo ** Options can be passed to the erlang runtime using ELIXIR_ERL_OPTS" >&2
1820:run
19- call " %~dp0 \elixir.bat" --compile %*
21+ call " %~dp0 \elixir.bat" --compile %*
Original file line number Diff line number Diff line change 1- call " %~dp0 \elixir.bat" " %~dp0 \mix" %*
1+ @ echo off
2+ call " %~dp0 \elixir.bat" " %~dp0 \mix" %*
You can’t perform that action at this time.
0 commit comments