Replace onlypemder to opt_format with a bitmap of flags.