add detection for invalid option values - fixes #518

(0) -100 -30 -10 -1 +1 tip

mercurial