fixed:
> the double-dash bug, added a unit test for it