<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>And if you are using rebar and you have deps to other projects you might add following lines to rebar.config</div><div><pre><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">{escript_incl_apps, [ getopt
]}.</span></font></pre><pre><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"> {escript_emu_args, "%%! +K true +P 10000000\n"}.</span></font></pre></div><div><span style="background-color: rgba(255, 255, 255, 0);">Sad story, I've not figure out how to add erlang runtime to same package. Anyone, who receives you script needs to have one.</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div>Best Regards,<div>Dmitry</div><div>>-|-|-(*></div></div><div><div><br></div>On 11 Oct 2015, at 08:46, Frederic BONFANTI <<a href="mailto:frederic.bonfanti@gmail.com">frederic.bonfanti@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span>Hi guys,</span><br><span></span><br><span>given a simple Erlang code that consists in one file, let’s say test123.erl , I’d like to </span><br><span></span><br><span>1. use a Makefile to compile test123.erl into test.beam and then generate a distributable version of test123 (executable)</span><br><span></span><br><span>2. figure-out how to parse the command line arguments once this test command is called from regular shell, for example:</span><br><span>        </span><br><span>        test123 -A -x 555</span><br><span></span><br><span>If there are straightforward examples available, that will do.</span><br><span></span><br><span>Thanks in advance</span><br><span></span><br><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>