title: Is there a way to let arguments be var instead of val?
body: <p>When debugging command line argument handling in Java I'm used to doing</p>
  
  <pre><code>args = new String[] { "some", "new", "arguments" };
  </code></pre>
  
  <p>(especially useful if have a filename as argument which you frequently change, but don't want to go through some dialog windows in the IDE). This has the benefit that I can simply comment out the line when building a release.</p>
  
  <p>So when I tried this in Scala I discovered that arguments are <code>val</code>s. (And I can't write <code>var</code> in front of the parameter).</p>
  
  <ul>
  <li><strong>Q1</strong>: What's the rationale for this?</li>
  <li><p><strong>Q2</strong>: So is there any obvious work-around except for doing</p>
  
  <pre><code>val newArgs = if (...) args else Array("some", "new", "arguments")
  </code></pre>
  
  <p>and stick to <code>newArgs</code> in the remaining main method?</p></li>
  </ul>