refine doc for flags