Add a check to -v to error when invalid.

Currently -v will take a value higher than 255 and just silently
overflow. This is an unintuitive behavior and causes weird issues
when you overflow.