getopt conversion