]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: don't issue usage on errors
authorDan Mick <dan.mick@inktank.com>
Wed, 10 Oct 2012 17:41:05 +0000 (10:41 -0700)
committerDan Mick <dan.mick@inktank.com>
Thu, 11 Oct 2012 00:41:27 +0000 (17:41 -0700)
commit0ec45201f51b44e3d34a04e4680125cdfd1f181e
tree33a2cd8b653905e13b95cd678231393b3e0b127c
parent29bd47676245a60b16d4f1a40cb3a3a25445d00b
rbd: don't issue usage on errors

Change bare calls to usage() to an informative targeted error message
Remove all calls to usage() except when requested with -h/--help
Regularize all errors to start with rbd:
Remove a few commented cerrs, wrap cerr calls at 80 cols

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/rbd.cc
src/test/cli/rbd/bad-map.t
src/test/cli/rbd/invalid-snap-usage.t