optparse: suspect bug, better signatures, and optimally increment i