v2.0.0-M14
Pre-release
Pre-release
Add support for custom option format
Use like
object MyApp extends CaseApp[MyOptions] {
override def nameFormatter = new Formatter[Name] {
def format(s: Name): String =
// Format name.name, a field name, which typically has camelCase, as you wish.
// The default formatter converts camelCase to "kebab case" (lower case, dash separator).
???
}
def run(options: MyOptions, args: RemainingArgs): Unit = {
???
}
}
Added in #186, thanks to @regadas.
Updates
- Switch to Scala.JS
1.0
- Switch to refined
0.9.3