Skip to content

Special subcommand/options for specific argument value #6060

Closed Answered by epage
OwOchle asked this question in Q&A
Discussion options

You must be logged in to vote

So I'm assuming java / gradle is mean to be a positional argument. It sounds like you are wanting to declare a conflict between some argument values and flags.

We have some behavior that allows checks like that (e.g. requires_if) but we don't have one for conflicts. I'm hesitant to expand the API to cover all of the forms of validation people request and am instead looking for ways to make this more flexible. This is being explored in #3476.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by OwOchle
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants