Add an option to fail on any warning.

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