Apparently libc for ARM has a known issue whereby getopt() returns a 1 byt...

...e char instead of a traditional int char.  This makes checking for a return of -1 from getopt() not work; has to be (char)-1.  Issue arose on Raspberry Pi