pallets/click

Mutually exclusive option groups

cosminbasca opened this issue · 4 comments

Is it possible to have mutually exclusive option / argument groups ala argparse: add_mutually_exclusive_group?

better yet, mutually exclusive groups of (mutually exclusive) groups. In essence tree like grouping strategies for option groups?

Thanks

I've implemented my own solution to support option groups and mutually exclusive option groups on top of click. If there is interest, let me know and I will try to integrate it into click and submit a pull request.

Cheers,
Cosmin

Dup of #257.

@cosminbasca Could you at least link your solution here (and/or at #257, since this issue will likely be closed as a dup) as an example to others?

Duplicate of #257, which is already resolved (rejected) and has all information you need to implement this manually.