getopt working