docopt/docopt.java — pull request #3 by lpar (2014-08-08 19:21:34+00:00)
Title: Fix #2 avoid java.lang.IllegalStateException in doParse.

As per the JavaDoc, you can only call remove() on an Iterator once per next(). Calling it a second time causes an illegal state exception.