Thanks @chetanmeh, However, `ScallopOption[List[String]]` doesn't have a
`toSet` method
```> Task :tools:admin:compileScala
/openwhisk/tools/admin/src/main/scala/whisk/core/database/LimitsCommand.scala:82:
value toSet is not a member of org.rogach.scallop.ScallopOption[List[String]]
allowedKinds.toSet))
```
...and trying to use `allowedKinds.toOption.toSet` creates a
`Set[List[String]]` instead of an `Option[Set[String]]` which was the reason
for the explicit conversion.
```/openwhisk/tools/admin/src/main/scala/whisk/core/database/LimitsCommand.scala:87:
polymorphic expression cannot be instantiated to expected type;
found : [B >: List[String]]scala.collection.immutable.Set[B]
required: Option[Set[String]]
allowedKinds.toOption.toSet))
```
The only way I found to do this within the ScallopOption was to [create a
custom converter](https://github.com/scallop/scallop/wiki/Custom-converters)
which looked like overkill.
Am I missing something?
[ Full content available at:
https://github.com/apache/incubator-openwhisk/pull/4035 ]
This message was relayed via gitbox.apache.org for [email protected]