Fix parsing arguments after '--'

Arguments after a -- was not handled correctly. Now it does the same
thing as the python version and convert all arguments after -- as
arguments and not options even if they have -- or - in front of them.