Update getopt.cpp