]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd/Schedule.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / tools / rbd / Schedule.cc
index d7fcf1253deb6b95a05428777eb8e220892fc48f..15dda3aee7ef940941d2d89b9ee07d4d55824865 100644 (file)
@@ -152,11 +152,19 @@ void normalize_level_spec_args(std::map<std::string, std::string> *args) {
   }
 }
 
-void add_schedule_options(po::options_description *positional) {
-  positional->add_options()
-    ("interval", "schedule interval");
+void add_schedule_options(po::options_description *positional,
+                          bool mandatory) {
+  if (mandatory) {
+    positional->add_options()
+      ("interval", "schedule interval");
+  } else {
+    positional->add_options()
+      ("interval", po::value<std::string>()->default_value(""),
+       "schedule interval");
+  }
   positional->add_options()
-    ("start-time", "schedule start time");
+    ("start-time", po::value<std::string>()->default_value(""),
+     "schedule start time");
 }
 
 int get_schedule_args(const po::variables_map &vm, bool mandatory,