summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2013-07-09 11:24:34 +0200
committerJosé Valim <jose.valim@plataformatec.com.br>2013-07-09 11:24:34 +0200
commit5b2f44d1d79e57c38017e6b89e014a8c6c76e6a4 (patch)
tree4f628b5f0203364ea672e196ae59c29d3e5eccdf
parentad3cf4e4515602c672e6b1543212a111063939f0 (diff)
downloadelixir-5b2f44d1d79e57c38017e6b89e014a8c6c76e6a4.tar.gz
Ensure --app switch does not halt upcoming ones, closes #1398
-rwxr-xr-xbin/elixir2
-rw-r--r--bin/elixir.bat4
2 files changed, 5 insertions, 1 deletions
diff --git a/bin/elixir b/bin/elixir
index 717534212..5bac3e364 100755
--- a/bin/elixir
+++ b/bin/elixir
@@ -43,7 +43,7 @@ while [ $I -le $# ]; do
case "$PEEK" in
-v|--compile|--no-halt|+iex|+compile)
;;
- -e|-r|-pr|-pa|-pz|--remsh)
+ -e|-r|-pr|-pa|-pz|--remsh|--app)
S=2
;;
--detached|--hidden)
diff --git a/bin/elixir.bat b/bin/elixir.bat
index f5d161021..8f7a8f24b 100644
--- a/bin/elixir.bat
+++ b/bin/elixir.bat
@@ -106,6 +106,10 @@ for /f "usebackq" %%m in (`echo %par%^|findstr \-p[raz]`) do (
shift
goto:startloop
)
+for /f "usebackq" %%m in (`echo %par%^|findstr \--app`) do (
+ shift
+ goto:startloop
+)
for /f "usebackq" %%m in (`echo %par%^|findstr \--remsh`) do (
shift
goto:startloop