search term:

scopt 4.2.0

scopt 4.2.0 is released. To try new scopt 4.2.0:

libraryDependencies += "com.github.scopt" %% "scopt" % "4.2.0"

scopt 4.2.0 is cross published to the following build matrix:

Scala Version JVM JS (1.x) Native (0.5.x)
3.x ✅ ✅ ✅
2.13.x ✅ ✅ ✅
2.12.x ✅ ✅ ✅

scopt 4.2 and later require JDK 17 for Scala 3.x.

scopt is a little command line options parsing library. See https://eed3si9n.com/scopt4 or readme for the details on how to use scopt.

Space-separated list

scopt 4.2.0 adds support for space-separated list (as opposed to comma-separated list).

val spaceSepParser1 = new scopt.OptionParser[Config]("scopt") {
  head("scopt", "4.x")
  opt[SpaceSep[Int]]('f', "foo").action({ case (s, c) =>
    c.copy(spaceSepInts = s)
  })
  help("help")
}

This was contributed by @NancyD2017 in #367.

Other updates

Participation

According to git shortlog scopt 4.2.0 is brought to you by 6 contributors. Thanks!

$ git shortlog -sn --no-merges v4.1.0...develop
     13  Kenji Yoshida (xuwei-k)
     6   Eugene Yokota
     1   Anastasiia
     1   Jeff Cousens
     1   Lorenzo Gabriele
     1   Yosef Fertel