Maybe we could then even have such a line:

    else if (infile.key == "require_flags" || infile.key == "require_flag") { 

to also have a single flag working:
    
    require_flag=equip_spear