title: starting erlang with command line args works, with args_file doesn't
body: <p>I rigged up a very simple little OTP application in erlang by following the amazing "How to create a HTTP API with Erlang in 10 Minutes":</p>
  
  <p><a href="https://vimeo.com/59832641" rel="nofollow">https://vimeo.com/59832641</a></p>
  
  <p>It works perfectly when I start erl with command line args as demonstrated in the video. However, if I try to start erl with the -args_file argument, the application does not start.</p>
  
  <p>The args_file is incredibly simple; it has only one line, as follows:</p>
  
  <pre><code>-pa deps/*/ebin ebin -s fancyapi_app
  </code></pre>
  
  <p>...and here's the error report I get when I try to run erlang:</p>
  
  <pre><code>=INFO REPORT==== 5-Mar-2013::19:32:59 ===
  application: fancyapi
  exited: {shutdown,{fancyapi_app,start,[normal,[]]}}
  type: temporary
  </code></pre>
  
  <p>Any ideas? Does <code>args_file FileName</code> cause more to happen than just using regular command line args? Documentation is at:</p>
  
  <p><a href="http://www.erlang.org/doc/man/erl.html" rel="nofollow">http://www.erlang.org/doc/man/erl.html</a></p>
  
  <p>Furthermore, I know the command is working to an extent because if I add, say <code>-sname node</code> to the text file, the erl prompt shows <code>(node@localhost)1&gt;</code>.</p>