clipp icon indicating copy to clipboard operation
clipp copied to clipboard

Timing example not working with flags

Open tversteeg opened this issue 4 years ago • 1 comments

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.

tversteeg avatar Sep 10 '19 08:09 tversteeg

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.

muellan avatar Sep 18 '19 07:09 muellan