]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: corrected handling of '--image-feature' optional
authorJason Dillaman <dillaman@redhat.com>
Tue, 10 Nov 2015 18:21:11 +0000 (13:21 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 Nov 2015 18:21:11 +0000 (13:21 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd/ArgumentTypes.cc
src/tools/rbd/ArgumentTypes.h

index d8c2c1f55b0de5222774a20370310ffbcc4394f1..95b9a383bdd6285caa2946567aec76b0181518ba 100644 (file)
@@ -172,7 +172,7 @@ void add_create_image_options(po::options_description *opt,
   opt->add_options()
     (IMAGE_ORDER.c_str(), po::value<ImageOrder>(),
      "object order [12 <= order <= 25]")
-    (IMAGE_FEATURES.c_str(), po::value<ImageFeatures>()->multitoken(),
+    (IMAGE_FEATURES.c_str(), po::value<ImageFeatures>()->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<uint32_t>(), "stripe unit")
index 985279ae58e59cad43001a6acadb3602f9d0d90c..47ad55f107d8e16ecd60c874899b09391b8bf7d2 100644 (file)
@@ -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");