getopt() works