title: Type List takes type parameters
body: <p>I have the following data:</p>
  
  <pre><code>val param1 = List(("f1","f2","f3"),
                    ("d1","d2","d2"))
  </code></pre>
  
  <p>The number of rows in this <code>List</code> is not fixed.</p>
  
  <p>I want to pass these data as the input parameter of my Scala object.</p>
  
  <pre><code>import scopt.OptionParser
  
  object Test {
  
    case class Params( param1: List[(String, String, String)] = null )
  
    def main(args: Array[String]) {
  
      val defaultParams = Params()
  
      val parser = new OptionParser[Params]("Test") {
        head("bla-bla")
  
        opt[List[(String, String, String)]]("param1")
          .required()
          .text("xxx")
          .action((x, c) =&gt; c.copy(param1 = x))
      }
  
      parser.parse(args, defaultParams).map { params =&gt;
        val processor = new TestProcessor()
        processor.run(params)
      } getOrElse {
        System.exit(1)
      }
    }
  }
  </code></pre>
  
  <p>How can I do it? Currently, I define <code>String</code>, but it's not correct. If I use <code>List(String,String,String)</code>, then it says <code>Type List takes type parameters</code>.</p>