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

Timing example not working with flags #34

Open
tversteeg opened this issue Sep 10, 2019 · 1 comment
Open

Timing example not working with flags #34

tversteeg opened this issue Sep 10, 2019 · 1 comment

Comments

@tversteeg
Copy link

tversteeg commented Sep 10, 2019

The timing.cpp example is broken when passing flags:

This works fine:

./timing -n 10 exename -- some_string

This gives a parse error:

./timing -n 10 exename -- --another-flag -a

I would like to have functionality similar to this so I can pass the arguments after -- to another executable like in this example.

@muellan
Copy link
Owner

muellan commented Sep 18, 2019

That shouldn't happen, so I consider this to be a bug.
It seems to break if the args after the stand-alone -- have -- as their prefix.
A quick&dirty fix would be to use --- as separator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants