commit | a55c72594c50e7372d6cad815e5ebba0d0f4817f | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Jan 25 22:25:30 2018 -0800 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Mon Jan 29 18:34:51 2018 +0000 |
tree | 9c27ec147210e0c370fd61be583f6c541d3ba451 | |
parent | 36a318c56cc4e0faac19ed89afeff15a105b8a58 [diff] |
argument: Fix use of optarg getopt supports no_argument, required_argument, and optional_argument types of arguments. Getopt returns NULL in optarg if no argument was given in the case of no_argument or optional_argument types. Use this value to determine if we should use optarg or trueString. Change-Id: I414c4d3c2923844cff13a070357269c5b48048c9 Signed-off-by: William A. Kennington III <wak@google.com>