get method accept name of flag