Skip to content
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

Mutually exclusive options #6

Open
grkvlt opened this issue May 15, 2012 · 1 comment
Open

Mutually exclusive options #6

grkvlt opened this issue May 15, 2012 · 1 comment

Comments

@grkvlt
Copy link

grkvlt commented May 15, 2012

It would be nice to support mutually exlusive option groups for a command. I am not sure what the best syntax would be - something like this, maybe:

@Option(name = "-a", group = "mutex")
String a;
@Option(name = "-b", group = "mutex")
String b;
@dain
Copy link
Owner

dain commented May 15, 2012

I was thinking this kind of thing would be handled by the validation system. Basically, I see the CLI as the syntax parser and the validation system handeling the higher level semantics of the command. Based on the other CLI frameworks in Java, I'm very concerned about making the CLI system overly complex. Does that work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants