Created
July 22, 2016 20:44
-
-
Save larroy/e396544821b3453d043530c3dbe11722 to your computer and use it in GitHub Desktop.
scallop
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
class Opts(args: Seq[String]) extends ScallopConf(args) { | |
val input = opt[String]("input", descr = "input xlsx file", required = false, default = Some("OnCall_form.xlsx")) | |
val output = opt[String]("output", descr = "output xlsx file", required = false) | |
val user = opt[String]("user", descr = "user login", required =) | |
val team = opt[String]("team", descr = "user team", required = true) | |
val month = opt[Int]("month", descr = "month index starting from 1", required = true) | |
val year = opt[Int]("year", descr = "year yyyy", required = false, | |
default = Some(ZonedDateTime.now().getYear)) | |
val pagerDuty = opt[String]("pagerDuty", descr = "pagerduty xml file", required = false) | |
val manager = opt[Int]("manager", descr = "manager", required = true) | |
verify() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment