ulrichsg/getopt-php — pull request #2 by avargas (2011-12-18 02:18:21+00:00)
Title: Proposal for handling adding options after object has been created.

This wasn't implemented on the previous pull request - didn't realize you couldn't do.

Basically the constructor did the logc on how to process the arguments and how to parse them. I moved it to a newly created public method `addOptions()` so we can add more options later on.

I added a new test for my changes.

All tests pass

```
PHPUnit 3.5.15 by Sebastian Bergmann.

............fetching rest as operands
.......fetching rest as operands
.fetching rest as operands
..fetching rest as operands
..fetching rest as operands
.....

Time: 0 seconds, Memory: 6.75Mb

OK (29 tests, 71 assertions)
```