commit | 8728491a0043bb67bdabdf27ffb8db89d930b88a | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Tue Jan 23 22:07:25 2018 -0800 |
committer | William A. Kennington III <wak@google.com> | Thu Jan 25 17:32:11 2018 -0800 |
tree | 80cc3981f83b8a13da73b486b8e231fa1ffea0d1 | |
parent | bfe5cb8e60cadf19bff81acf926ab078ad438120 [diff] |
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>