Created
April 3, 2012 19:51
-
-
Save alexy/2295110 to your computer and use it in GitHub Desktop.
packaging scallop options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case object o { | |
val suffix: Boolean = opts[Boolean]("suffix") | |
val csv: Boolean = opts[Boolean]("csv") | |
val minMax: Option[Int] = opts.get("min") | |
override def toString: String = | |
"\n"+ | |
"\n suffix=> " + suffix + | |
"\n csv => " + csv + | |
"\n minMax=> " + (minMax match { case Some(n) => n.toString; case _ => "nothing" }) | |
"\n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment