help flags

flags
flags <object>
flags <object> <flag>
flags <object> <flag> <value>
flags list
flags explain <flag>
flags |<search>

Flags <object> shows the flags that are set on the object that you specify.
Flags <object> <flag> shows the setting of the flag on the object.
Flags <object> <flag> <value> sets the flag to the value that you specify.

Flags on its own shows a list of flags.
Flags |whatever will show a list of flags with the string whatever in them.
Flags list shows all flags together with a short piece of documentation. Flags explain <flag> will show the documentation for a single flag.