Add flags from a struct