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
Add ability to disable short option clustering #136
Comments
@cmnbroad Thanks for your interest in JOpt Simple! Can you elaborate a bit on the confusion that short option clustering is causing? There are a couple of potential remedies that don't involve adding new API:
I'm reluctant to add API unless its value is clear and convincing. |
Hi @pholser We generally use long and short names for all of our options (though we use single letter short names only sparingly due to the shear number we have, so most of our users aren't even aware that clustering is a thing). The confusion happens when the user types a bogus long option name, i.e., |
@cmnbroad Thanks for the extra info. A couple of questions:
I guess I'd expect this to raise CC: @twoqubed |
@pholser How do you do accomplish # 1 (disallow abbreviations of long options) ? I'd certainly give it a try. And yes, its been a while since I wrote this test, but it does seem like it should raise an exception. I'll take a closer look. |
@cmnbroad To disallow (unambiguous) abbreviations of options, construct an |
We'd like to have the ability to disable short arg clustering, since it results in some confusion for our users. #137 is a PR with proposed changes.
The text was updated successfully, but these errors were encountered: