Replies: 2 comments 4 replies
-
We currently have a bug around nested groups (#4697). However, you don't have to have a parent group but could just make You can use any builder method as an attribute. If you want some of this done for you at the type level, we do implicitly make all |
Beta Was this translation helpful? Give feedback.
-
Yeah.. that is where I'm at currently..
I'll play with this.. but I think this means that b&c are required all the time.. That isn't the intention.. either a OR b+c are required. |
Beta Was this translation helpful? Give feedback.
-
I would like to have either param
--a
OR (param--b
AND--c
)Stated differently, either
a
needs to be present, or bothb
andc
should be present.This almost feels like I should have 2 groups. An arg group with b and c nested inside an outer arg group that has arg a and the bc group.
Is there a way to achieve this in clap, specifically using the derive syntax, but I'll take any options TBH.
Beta Was this translation helpful? Give feedback.
All reactions