Improve error handling on numeric command parameters