Reset optind to 0, not 1.

Seems to cause strange issues ...