fix getopt_long bug