Skip to content

Commit

Permalink
going back to lists for the main config
Browse files Browse the repository at this point in the history
  • Loading branch information
jberthold-da committed May 17, 2019
1 parent 0a98694 commit 179dd62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final case class Conf(
outputDirectory: Path,
decoderPkgAndClass: Option[(String, String)] = None,
verbosity: Level = Level.ERROR,
roots: Seq[String] = Seq()
roots: List[String] = Nil
)

object Conf {
Expand Down Expand Up @@ -60,7 +60,7 @@ object Conf {

opt[String]('r', "root")(Read.stringRead)
.unbounded()
.action((rexp, c) => c.copy(roots = rexp ++ c.roots))
.action((rexp, c) => c.copy(roots = rexp :: c.roots))
.text("Regular expression for interesting templates")

help("help").text("This help text")
Expand Down

0 comments on commit 179dd62

Please sign in to comment.