ulrichsg/getopt-php — pull request #45 by jasonwatt (2014-12-08 21:07:33+00:00)
Title: Allow Unexpected Values

I have an app that needs to parse the options multiple times (once for global options, once for a provider i dynamically load) and there will be unexpected values in the 1st run of the parse for global options.

This uses a variable of $this->allowUnexpected to be set to true to disable the exception when parsing.

Thought this might be useful for others so i made this pull equest.