argument: Reset optind before using getopt

The getopt family of functions are globally stateful, we need to make
sure that we reset the global state before using it otherwise we can't
create arguments more than once.

Change-Id: Ic673eb3592217329b95fde033a1f2773b6b980bf
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed