-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flags mutually exclusive but one of them required #1891
Comments
Sadly this is not supported. See #1761 . |
ok, thanks for confirmation; I hope I will find some time to improve it in Cobra someday :) |
That would be great! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey, thanks for cool library, I have only a one question:
how to make only one of flags defined required, I mean
--file
or--url
? but not at the same time?I see that there is
MarkFlagsRequiredTogether
but I more want to have sth likeMarkFlagsRequiredSome("file", "url")
:)Any ideas have to handle such case?
Greetings, Krystian
The text was updated successfully, but these errors were encountered: