2
Scala(https://github.com/scallop/scallop/)を使用して、Scalaのコマンドライン引数を解析しようとしています。Scallopライブラリのカスタムコンバータ
しかし、https://github.com/scallop/scallop/wiki/Custom-convertersに示すように、引数をケースクラスに変換する例はコンパイルできません。
私はコンパイル時に2つのエラーを取得:
[error] found : org.rogach.scallop.ValueConverter[center.scala.sbk.Commands.Person]{val nameRgx: scala.util.matching.Regex; val phoneRgx: scala.util.matching.Regex}
[error] required: String
[error] Error occurred in an application involving default arguments.
[error] val person = opt[Person](personConverter)
[error] ^
と
[error] ...: could not find implicit value for parameter conv: org.rogach.scallop.ValueConverter[center.scala.sbk.Commands.Person]
[error] Error occurred in an application involving default arguments.
[error] val person = opt[Person](personConverter)
[error] ^
はあなたの助けをありがとう!