diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-09-26 19:26:20 -0500 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-09-26 19:26:34 -0500 |
commit | e7e5e5d72a2727ee1ba5fdc764e8a18cc5411cf6 (patch) | |
tree | 39b6863fa635c0f356e4a038dedc253f44c4852f /bin/elixir | |
parent | 80bc2c982585503c98c2abde4dbdf9b47ef601c3 (diff) | |
download | elixir-e7e5e5d72a2727ee1ba5fdc764e8a18cc5411cf6.tar.gz |
Supports --detached option on command line, closes #487
Diffstat (limited to 'bin/elixir')
-rwxr-xr-x | bin/elixir | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/elixir b/bin/elixir index 5a5e865ea..4e381f869 100755 --- a/bin/elixir +++ b/bin/elixir @@ -13,6 +13,7 @@ if [ $# -eq 0 ]; then --name \"name\" Makes and assigns a name to the distributed node --sname \"name\" Makes and assigns a short name to the distributed node --remsh \"name\" Connects to a node using a remote shell (with iex) + --detached Starts the Erlang VM detached from console --no-halt Does not halt the Erlang VM after execution ** Options marked with (*) can be given more than once @@ -43,6 +44,9 @@ while [ $I -le $# ]; do -e|-r|-pr|-pa|-pz|--remsh|-S) S=2 ;; + --detached) + ERL="$ERL `echo $PEEK | cut -c 2-`" + ;; --sname|--name) I=$(expr $I + 1) eval "VAL=\${$I}" |