From: Jason Dillaman Date: Tue, 10 Nov 2015 18:21:11 +0000 (-0500) Subject: rbd: corrected handling of '--image-feature' optional X-Git-Tag: v10.0.1~103^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1be02b1d87d84392f2d6ad613bb731b960663903;p=ceph.git rbd: corrected handling of '--image-feature' optional Signed-off-by: Jason Dillaman --- diff --git a/src/tools/rbd/ArgumentTypes.cc b/src/tools/rbd/ArgumentTypes.cc index d8c2c1f55b0..95b9a383bdd 100644 --- a/src/tools/rbd/ArgumentTypes.cc +++ b/src/tools/rbd/ArgumentTypes.cc @@ -172,7 +172,7 @@ void add_create_image_options(po::options_description *opt, opt->add_options() (IMAGE_ORDER.c_str(), po::value(), "object order [12 <= order <= 25]") - (IMAGE_FEATURES.c_str(), po::value()->multitoken(), + (IMAGE_FEATURES.c_str(), po::value()->composing(), ("image features\n" + get_short_features_help(true)).c_str()) (IMAGE_SHARED.c_str(), po::bool_switch(), "shared image") (IMAGE_STRIPE_UNIT.c_str(), po::value(), "stripe unit") diff --git a/src/tools/rbd/ArgumentTypes.h b/src/tools/rbd/ArgumentTypes.h index 985279ae58e..47ad55f107d 100644 --- a/src/tools/rbd/ArgumentTypes.h +++ b/src/tools/rbd/ArgumentTypes.h @@ -55,7 +55,7 @@ static const std::string WHOLE_OBJECT("whole-object"); static const std::string IMAGE_FORMAT("image-format"); static const std::string IMAGE_NEW_FORMAT("new-format"); static const std::string IMAGE_ORDER("order"); -static const std::string IMAGE_FEATURES("image-features"); +static const std::string IMAGE_FEATURES("image-feature"); static const std::string IMAGE_SHARED("image-shared"); static const std::string IMAGE_SIZE("size"); static const std::string IMAGE_STRIPE_UNIT("stripe-unit");