System.argv does not work well with start/console command
clouds56 opened this issue · 1 comments
clouds56 commented
Now System.argv is not well set when starting app with console|start
command
$ VERBOSE=1 <myapp> console 1 2 3
Exec: -boot ./_build/dev/rel/myapp/releases/0.1.0/myapp -args_file ./_build/dev/rel/myapp/var/vm.args -mode embedded -user Elixir.IEx.CLI -extra --no-halt +iex -- console 1 2 3
Root: /usr/lib/erlang
./_build/dev/rel/myapp
Erlang/OTP 21 [erts-10.1.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
iex(myapp@127.0.0.1)1> System.argv
["console 1 2 3", ""]
I'm expecting the System.argv
to be ["1", "2", "3"] or at least ["console", "1", "2", "3"].
Environment:
elixir-1.7.3
mix-1.7.3
distillery-2.0.12
linux 4.19.4
bitwalker commented
Fixed in master, will be out in the next release. Thanks for reporting!