requires
does not throw error when other agrument from a group is passed
#5446
Unanswered
Iamnotagenius
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know if this is a bug or not, I'm not quite sure here.
Here's an MRE:
When I supply only
--requires-second
I get a suggestion to use--second
as expected, however, when I supply--first
instead, it suddenly succeeds. Other odd thing is when I set.required(true)
for the group the suggestion after supplying--requires-second
changes and now it shows<--first|--second>
to be required.For clarity, I'm using clap 4.5.4.
Beta Was this translation helpful? Give feedback.
All reactions