Add an option to fail on any warning.

TODO:

- [x] determine the argument name other programs use for this feature
- [x] add argument and tests