The word vexillum is Latin for sqaure flag and so vexillology is the study of the history, symbolism and usage of flags- basically anything flag-related.
Check out this link to see what Sheldon (from The Big Bang Theory) thinks about the study of flags.