build_table getopt