gg function fix (-h option to getopts argument).