help/options.c: add error handling for -d arg
authorGirts <girtsf@users.noreply.github.com>
Sat, 5 Nov 2016 21:38:55 +0000 (14:38 -0700)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sun, 23 Apr 2017 20:37:59 +0000 (21:37 +0100)
commitf63af76466234cc905df6ea8e0f3fb5284c2058d
tree98b0f3eb9cb78563a2ea0af56b5cf19d30d3de7b
parent1894292032cfa64a745349344ee7b6271867444f
help/options.c: add error handling for -d arg

Fail if we fail to set debug level. Also, clarify in usage string that
-d<n> doesn't accept spaces.

Change-Id: I9ea9945dc068e3e7cfd18b16ffa2a29366d6e4d1
Signed-off-by: Girts Folkmanis <opensource@girts.me>
Reviewed-on: http://openocd.zylin.com/3880
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/helper/options.c