Using click 's public API, implement a RangedIntParamType — a custom click.ParamType subclass that accepts…
Using click 's public API, implement a RangedIntParamType — a custom click.ParamType subclass that accepts…: a task in repo2rlenv-code-instruct (Harbor dataset). Additionally, implement a factory function make ranged option that accepts min val , max val , option name (e.g. "--count" ), and…
The task
Additionally, implement a factory function **`make_ranged_option`** that accepts `min_val`, `max_val`, `option_name` (e.g. `"--count"`), and `default` and returns a `click.Option` object configured with the `RangedIntParamType` and the given default.
Part of FineEnvs/repo2rlenv-code-instruct.