From: tang.jin Date: Mon, 16 Jan 2017 14:28:23 +0000 (+0800) Subject: rbd: add error prompt when input command 'snap set limit' is incomplete X-Git-Tag: v12.0.0~146^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12945%2Fhead;p=ceph.git rbd: add error prompt when input command 'snap set limit' is incomplete Signed-off-by: Tang Jin --- diff --git a/src/tools/rbd/action/Snap.cc b/src/tools/rbd/action/Snap.cc index 892d051d8c34..168679393bf2 100644 --- a/src/tools/rbd/action/Snap.cc +++ b/src/tools/rbd/action/Snap.cc @@ -474,6 +474,7 @@ int execute_set_limit(const po::variables_map &vm) { if (vm.count(at::LIMIT)) { limit = vm[at::LIMIT].as(); } else { + std::cerr << "rbd: must specify --limit " << std::endl; return -ERANGE; }