click-contrib/click-option-group

Question: mutualy exclusive groups

nikoladsp opened this issue · 2 comments

Hi,
a question: how to make multiple groups mutually exclusive (if possible)?

So say I have group1 with options opt11 and opt12 and group2 with options opt21 and opt22. I want to force one group to exclude another: if I set opt11 and opt12, then opt21 and opt22 should not be set.

Thank you in advance.

Kindest regards

Hi @nikoladsp,

Any constraints between option groups are currently not supported. In your case, subgroups are needed, but subgroups are not supported either.

Please look at cloup project.

Thank you