Skip to content

Instantly share code, notes, and snippets.

@Rogach
Created April 5, 2012 05:20
Show Gist options
  • Save Rogach/2308208 to your computer and use it in GitHub Desktop.
Save Rogach/2308208 to your computer and use it in GitHub Desktop.
ScallopConf
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