I want to send arguments to the erlang vm, but 'emu_args: "+A32"' appears after the "-escript main parallel_tree_walk_escript" and appears to become arguments for the elixir program instead of affecting the erlang VM.
Without 'emu_args: "+A32"', the file created by "mix escript.build" contains line three
%%! -escript main parallel_tree_walk_escript
I seem to get the results I want if I alter that line with emacs (copes well with the non-ascii contents) to
%%! +A32 -escript main parallel_tree_walk_escript
However, if I use 'emu_args: "+A32" in mix.esx, the line becomes
%%! -escript main parallel_tree_walk_escript +A32
...and "+A32" appears not to go to the erlang vm, but instead appear as the first command line element of the args array.
# permits emacs edit of parallel_tree_walk result
def escript do
[
main_module: ParallelTreeWalk,
]
end
But this apparently puts the argument in the wrong location:
def escript do
[
main_module: ParallelTreeWalk,
emu_args: "+A32"
]
end
I hoped for
%%! +A32 -escript main parallel_tree_walk_escript
but the result was
%%! -escript main parallel_tree_walk_escript +A32
which doesn't work.