convert cli argument to int, tidy exception message