Scopt v3.7.0 Release Notes

Release Date: 2017-08-25 // over 6 years ago
  • scopt 3.7.0 is cross built for Scala 2.10, 2.11, 2.12, 2.13.0-M2, JS 0.6, and Native 0.3.

    withFallback

    👍 Options now support a fallback value.

    val parser = new scopt.OptionParser[Unit]("scopt") { head("scopt", "3.x") opt[String]("stringValue").required().withFallback(() =\> "someFallback") .foreach( x =\> stringValue = x ) help("help") }
    

    This feature was contributed by @mpollmeier in #150

    more exposure

    🔦 Exposes values and methods such name, getMinOccurs, getMaxOccurs, isHidden, desc, shortOpt, and valueName. #138 by @rhpvorderman