]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: understand -- argument
authorSage Weil <sage@newdream.net>
Thu, 21 Jul 2011 23:42:53 +0000 (16:42 -0700)
committerSage Weil <sage@newdream.net>
Fri, 22 Jul 2011 17:11:18 +0000 (10:11 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/tools/ceph.cc

index 33d0a14bd4f4cb3a9924071244a97074b232a0b9..f3124c4221f0429c869183065a91a594109f6597 100644 (file)
@@ -69,6 +69,10 @@ static void parse_cmd_args(const vector<const char*> &args,
       *mode = CEPH_TOOL_MODE_OBSERVER;
     } else if (CEPH_ARGPARSE_EQ("help", 'h')) {
       usage();
+    } else if (strcmp(args[i], "--") == 0) {
+      for (++i; i < args.size(); i++)
+       nargs->push_back(args[i]);
+      break;
     } else if (args[i][0] == '-' && nargs->empty()) {
       derr << "unrecognized option " << args[i] << dendl;
       usage();