Skip to content

Instantly share code, notes, and snippets.

def LogConfig(configItem: String, configValue: Any) = {
val logString = configValue match {
case configValueMap: Map[_,_] => "Configured " + configItem + " to " + configValueMap.mkString("{",", ","}") + "."
case _ => "Configured " + configItem + " to " + configValue + "."
}
info(logString)
}
@Rogach
Rogach / ScallopTest.scala
Created April 7, 2012 10:19 — forked from alexy/ScallopTest.scala
Holder fails, builder parses trailing args allright
import org.rogach.scallop._
import org.scalatest.FunSuite
import org.scalatest.matchers.ShouldMatchers
/**
* Created with IntelliJ IDEA.
* User: Alexy
* Date: 4/6/12
* Time: 10:34 AM