You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not windows specific. Since '-C' is a valid option, libgetopts is not treating 'C' it as a the start of the value being specified for the '-L' option. I'm not sure if this is expected or desired functionality. IMO if an option has a mandatory or optional argument then anything after it should be treated as such.
As soon as an option is found that takes an argument, consume the rest
of the string and store it into i_arg. Previously this would only happen
if the character after the option was not a recognized option.
Addresses issue rust-lang#16348
I don't know if anything else was relying on the old behavior, this seems more correct.
Fixes#16348
If '-F' is allowed to have an optional argument, with the previous version '-FF' would be translated to '-F -F'. In this new version '-FF' translates to '-F' with argument 'F'
This works, though:
rustc foo.rs -L C:\some\directory
The text was updated successfully, but these errors were encountered: