Created
April 5, 2012 05:20
-
-
Save Rogach/2308208 to your computer and use it in GitHub Desktop.
ScallopConf
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
object Main extends App { | |
object Conf extends ScallopConf(arguments) { | |
val apples:SOption[Int] = opt[Int]("apples") | |
val bananas = opt[Int]("bananas") | |
val file = trailArg[String] | |
verify | |
} | |
Conf.apples.get | |
Conf.bananas.option // not sure about option retreiving syntax | |
// maybe I should copy the code for SOption from stdlib Option? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment