The variable for searching the list of string/flag combinations shouldn't
be static, only the declaration should be static. Reference #1240, #1243.