add in -G option to getopt