implemented match() and parse() in class flag_option