Build a CLI helper using click that implements a tri-state flag option . Create a function make tristate…
Build a CLI helper using click that implements a tri-state flag option . Create a function make tristate…: a task in repo2rlenv-code-instruct (Harbor dataset). The option must be implemented using a custom click.ParamType subclass called TristateParamType that accepts "yes" and "no"…
The task
The option must be implemented using a custom `click.ParamType` subclass called `TristateParamType` that accepts `"yes"` and `"no"` (case-insensitive) and raises a `click.BadParameter` for any other input.
Part of FineEnvs/repo2rlenv-code-instruct.