Fix handling of end of command options (`--`) in `OptionParser`

Closes https://github.com/elixir-lang/elixir/issues/2263