]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: --concise by default, add --verbose option
authorSage Weil <sage.weil@dreamhost.com>
Fri, 30 Mar 2012 04:31:20 +0000 (21:31 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 30 Mar 2012 13:53:07 +0000 (06:53 -0700)
It's time.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/tools/ceph.cc

index e01539d5a0461004e2a63b4ed91a6d87ef7a7337..99adc20a9ecda748ed88b25001f80bec86378229 100644 (file)
@@ -80,6 +80,8 @@ static void parse_cmd_args(vector<const char*> &args,
       *mode = CEPH_TOOL_MODE_OBSERVER;
     } else if (ceph_argparse_flag(args, i, "--concise", (char*)NULL)) {
       *concise = true;
+    } else if (ceph_argparse_flag(args, i, "--verbose", (char*)NULL)) {
+      *concise = false;
     } else if (ceph_argparse_flag(args, i, "-h", "--help", (char*)NULL)) {
       usage();
     } else {
@@ -190,7 +192,7 @@ int main(int argc, const char **argv)
   common_init_finish(g_ceph_context);
 
   // parse user input
-  bool concise = false;
+  bool concise = true;
   string admin_socket;
   string admin_socket_cmd;
   parse_cmd_args(args, &in_file, &out_file, &mode, &concise, &admin_socket, &admin_socket_cmd);