You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building an app which compares two commits on a GitHub repo. I want to support users either passing rev1 and rev2 for comparison or I want them to be able to pass the pr number. So, in terms of clap Usage text I'd have something like
<--rev1 <REV1> --rev2 <REV2> | --pr <PR>>
Describe the solution you'd like
I'd like to be able to combine ArgGroup and required statements in such a way as to accomplish the above.
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Thanks, @epage . My concern is a bit different than #5041 . My concern is around the generated usage text, not the runtime evaluation of the provided arguments.
Please complete the following tasks
Clap Version
4.4.8
Describe your use case
I'm building an app which compares two commits on a GitHub repo. I want to support users either passing
rev1
andrev2
for comparison or I want them to be able to pass thepr
number. So, in terms ofclap
Usage text I'd have something likeDescribe the solution you'd like
I'd like to be able to combine
ArgGroup
andrequired
statements in such a way as to accomplish the above.Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: