doc: add docs for flags.