-
-
Notifications
You must be signed in to change notification settings - Fork 636
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
Value mismatch for the option level
#21426
Comments
Thanks for the report, I'll take a look asap. |
Interestingly, this happens only when using an In fact I'm mildly surprised that |
This seems like a bug in the discrepancy calculator, since the discrepancy is:
But we are seeing the debug output, so the legacy value used in practice is not actually INFO but DEBUG. I will take a closer look. |
Ha, OK, I see what's going on. So, |
Well that's just adding insult to injury... :( |
I am reluctant to change the behavior of the legacy parser at this late stage, since it's about to be deleted in 2.24.x, and I fear ripple effects and inadvertent breakage. Is using |
Sure, this works for me. Is the help output also generated by the parser and will be fixed once the switch to the native parser is completed? Or should I create a separate issue for that? Or should help remain as is, as short options with equals sign will be supported with the native parser IIUC. |
I think an issue for that would be good, thanks. It is true that it will work with an equals sign, but it's not how short options are intended to be used, so it's probably preferable for the help output to say the right thing... |
Will close this one, thanks! |
Describe the bug
Running pants with
-l=debug
(or apparently any value other than info) causes:I have used
pants -l=debug help global
to reproduce, but also happens with other commands. The error does not occur when using the long form--level=<value>
Pants version
Can reproduce with 2.22.0 and 2.23.0a0.
OS
Linux
The text was updated successfully, but these errors were encountered: