Effect CommunityEC
Effect Community2y ago
17 replies
Jonathan Clem

Custom Argument Validation

How can I run an arbitrary validation on an argument? I figured I could Effect.fail during Args.mapEffect, but this logs an actual error to the console when the failure happens (instead of just printing a help string).

In other words, I need to validate that a string argument matches a specific format.
Was this page helpful?