summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorOnorio Catenacci <ocatenacci@riis.com>2015-12-01 12:24:54 -0500
committerOnorio Catenacci <ocatenacci@riis.com>2015-12-01 12:24:54 -0500
commit5ffb2c570d9d55e60a1de2eca2ee5b0b20dbcc89 (patch)
treeac982f2c39aec9c1a9e62b72b40102102de3b409 /bin
parentd314230faab8a0eb0351e203fcd3386e405846b2 (diff)
downloadelixir-5ffb2c570d9d55e60a1de2eca2ee5b0b20dbcc89.tar.gz
Adding code to the Windows batch files to make it easier to diagnose issues on Windows with Elixir
Diffstat (limited to 'bin')
-rw-r--r--bin/elixir.bat2
-rw-r--r--bin/elixirc.bat2
-rw-r--r--bin/iex.bat2
-rw-r--r--bin/mix.bat2
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/elixir.bat b/bin/elixir.bat
index bdbf8dd63..17cc20ea8 100644
--- a/bin/elixir.bat
+++ b/bin/elixir.bat
@@ -1,4 +1,4 @@
-@echo off
+@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
setlocal
if ""%1""=="""" goto :documentation
if ""%1""==""--help"" goto :documentation
diff --git a/bin/elixirc.bat b/bin/elixirc.bat
index bf362b822..b64352457 100644
--- a/bin/elixirc.bat
+++ b/bin/elixirc.bat
@@ -1,4 +1,4 @@
-@echo off
+@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
set argc=0
for %%A in (%*) do (
if "%%A"=="--help" goto documentation
diff --git a/bin/iex.bat b/bin/iex.bat
index 717714c36..38e3c4c5c 100644
--- a/bin/iex.bat
+++ b/bin/iex.bat
@@ -1,2 +1,2 @@
-@echo off
+@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
call "%~dp0\elixir.bat" +iex --erl "-user Elixir.IEx.CLI" --no-halt %*
diff --git a/bin/mix.bat b/bin/mix.bat
index edb85de42..d3eaeaf32 100644
--- a/bin/mix.bat
+++ b/bin/mix.bat
@@ -1,2 +1,2 @@
-@echo off
+@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
call "%~dp0\elixir.bat" -e Mix.start -e Mix.CLI.main %*