getopt to getopt_long for long options