The --fail-if-changed option will cause `brew man` to return a failing status code if the man files have changed.
--help