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>
1 file changed