Make flag type generic
Fleshing out what we will need to do for parsing to actually take place