fixed usage of getopt_long