title: Pass arguments to App object in Scala
body: <p>I am currently creating with scalatest.org some unit tests for my application:</p>
  
  <pre><code>scala&gt; object Test extends App {
       | println(args)
       | }
  </code></pre>
  
  <p>How can I pass parameters to that object? I tried overriding the <code>args</code> value but after some research I discovered that it is not possible:</p>
  
  <pre><code>  /** The command line arguments passed to the application's `main` method.
     */
    @deprecatedOverriding("args should not be overridden", "2.11.0")
    protected def args: Array[String] = _args
  
    private var _args: Array[String] = _
  </code></pre>
  
  <p>How can I pass to the underscore <code>_</code> custom parameters in the code?</p>
  
  <p>Cheers</p>