Fixed to stop option parsing when a non-option argument is found.