Closed clouds56 closed 5 years ago
Now System.argv is not well set when starting app with console|start command
console|start
$ 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"].
System.argv
Environment: elixir-1.7.3 mix-1.7.3 distillery-2.0.12 linux 4.19.4
Fixed in master, will be out in the next release. Thanks for reporting!
Now System.argv is not well set when starting app with
console|start
commandI'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