Skip to content

v2.0.0-M14

Pre-release
Pre-release
Compare
Choose a tag to compare
@alexarchambault alexarchambault released this 14 Mar 15:40
28899aa

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