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

Change how libgetopts parse arguments without whitespace #16512

Merged
merged 1 commit into from
Aug 22, 2014

Conversation

wickerwaka
Copy link

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'

@lilyball
Copy link
Contributor

I'm in favor of the new functionality, it matches my expectations. I'll let someone else review the code, but at a minimum you need to squash your commits down.

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
@wickerwaka
Copy link
Author

Squashed (first PR and git n00b).

bors added a commit that referenced this pull request Aug 22, 2014
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'
@bors bors closed this Aug 22, 2014
@bors bors merged commit 08d7fc7 into rust-lang:master Aug 22, 2014
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

Successfully merging this pull request may close these issues.

Rustc command line parser does not accept absolute Windows paths after -L
4 participants