Replies: 2 comments
-
There are other problems with nested arg groups, see #4697. In this case,instead of using an arg group to make the two options mutually exclusive, I'd recommend having |
Beta Was this translation helpful? Give feedback.
0 replies
-
Awesome!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using clap to build a CLI, one option is to get multiple entries through the date range or get a single entry by name, something like
or
The issue is that I need to tell clap only one option is possible (either a combination of since and until or name), I tried creating 2 argroups nested, one to make sure both since and until are provided toghether and the second to make sure either dates or name is provided
But this breaks because apparently I can't use since_and_until agrgroup as an argument of another arggroup
Any idea how to achieve the functionality I am looking for?
Beta Was this translation helpful? Give feedback.
All reactions