All Versions
11
Latest Version
Avg Release Cycle
270 days
Latest Release
1215 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v3.1.0 Changes
July 08, 2013string short options
๐ scopt 3.0 changed short options from
String
toChar
to enforce all short options to be a single character. In scopt 3.1opt
still usesChar
, but usingabbr("nk")
it supportsString
short options:val parser = new scopt.OptionParser[Config]("scopt") { head("scopt", "3.x") opt[Unit]('n', "netrc") opt[Unit]('k', "keepalive") action { (x, c) => c.copy(keepalive= true) } opt[Unit]("no-keepalive") abbr("nk") action { (x, c) => c.copy(keepalive = false) } }
๐ Grouped options are parsed greedily. For example, in the above
-nk
is parsed as--no-keepalive
; and-nknk
is parsed as--no-keepalive --netrc --keepalive
. #19๐ bug fixes and minor enhancements