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

forbids violation has unpredictable error message #145

Open
charlesritchea opened this issue Jan 13, 2017 · 1 comment
Open

forbids violation has unpredictable error message #145

charlesritchea opened this issue Jan 13, 2017 · 1 comment

Comments

@charlesritchea
Copy link

Given options -foo, -bar, and -baz that forbid each other (are mutually exclusive)
With args [-foo -bar]
When parse
Should throw CmdLineException with predictable error message so that a thorough assertion can be made in unit tests.
But
Message could say: [-foo] cannot be used with option(s) [-bar -baz]
or could say: [-bar] cannot be used with option(s) [-foo -baz]
depending on environment.

Try running the same test in gradle or Intellij to reproduce.

@charlesritchea
Copy link
Author

Using version 2.33 and latest released versions of gradle and IntelliJ

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

1 participant