-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Command argument parsing behavior changed with Mill 0.11.7 #3004
Comments
I think this is expected due to the syntax for Maybe we can validate the entire What I described would still be a behavioral change. e.g. if you have flags We could add a configuration flag to disable the combined-short-options behavior for cases where that is desired, though exposing such a flag to people defining Mill |
I agree. It should only go in the report error mode, if there is no Leftover that can take it. |
Interestingly, I can work around with specifying > mill my.app.smokeTest --xvfb --timeout 60 --args -consoleLog This isn't free of issues though, as the resulting |
Also, I think |
The over-eager erroring out is probably here: Where we immediately return the error, rather than going through the normal
This is because we specifically look for a single-dash-followed-by-not-a-dash prefix before we start parsing combined short options https://github.com/com-lihaoyi/mainargs/pull/102/files#diff-43ca7abfb0abd6d68548dfffb2c189d5ff46628f78c39c61913200aff83165f2R101
If we delegate to |
com-lihaoyi/mainargs#112 should fix this I think |
@lefou I think I'm hitting this error but I'm really confused as to what version of mill I'm actually running: I am using asdf to manage versions in my project, and my project structure is as follows:
Running When running
Either of these changes lets the app run:
So it seems like edit: Adding a line |
I don't know |
This is most likely caused by the mainargs version update from
0.5.4
to0.6.1
I have the following command, that stopped working as before and expected:
I typically start it as follows:
> mill my.app.smokeTest --xvfb --timeout 60 -consoleLog
The
consoleLog
is supposed to be parsed intoargs
parameter, since it is amainargs.Leftover[String]
.Since the version bump to Mill
0.11.7
, it fails with the following error message:I also tried to force the parser to stop reading options with
--
, but it didn't work.The text was updated successfully, but these errors were encountered: