-
Notifications
You must be signed in to change notification settings - Fork 609
my_program -DFOO=bar fails to parse #357
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
Comments
I'm not sure if that's supposed to parse. The
but with the |
The |
Well the whole value is |
Actually |
Didn't quite understand this sentence. "allowed" - by you? in principle? in the current implementation? |
I mean allowed by the current implementation. I'll try something and see if I can get it to work. |
I added an
it appears to work:
|
@jarro2783 : That specific exception doesn't cut it. Any sequence of characters (other than '\0') should be acceptable after the -D, not just
|
That sounds reasonable. I'll get that working and make sure nothing else is broken. |
Great. But - remember that:
|
Yeah I thought of that, I checked my first patch and this already works:
and when it's not recognised it just treats everything as options
|
@jarro2783 : I'm just anxious to close this issue... |
I have a fix that I will finish off in the next day. |
So, it was that simple after all? No issues with option grouping? |
No, given that only the last option in a group of single options could actually take a value, the parsing already worked. |
I'm running the following program:
and, when building with the master branch (or v3.0.0), I get this:
Despite the fact that, supposedly, #158 is fixed.
The text was updated successfully, but these errors were encountered: