bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.96k stars 397 forks source link

System.argv does not work well with start/console command #611

Closed clouds56 closed 5 years ago

clouds56 commented 5 years ago

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 5 years ago

Fixed in master, will be out in the next release. Thanks for reporting!