gsu_getopts: Abort on programming errors and add documentation.