]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: only show -d, -f options for daemons
authorSage Weil <sage@inktank.com>
Thu, 24 Jan 2013 21:29:03 +0000 (13:29 -0800)
committerSage Weil <sage@inktank.com>
Thu, 24 Jan 2013 21:31:43 +0000 (13:31 -0800)
Fixes: #3073
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/ceph_argparse.cc

index f26fe93b656d2c3d3aeb30ad375d73145a0ddac2..64e1288cfa895aafd094c3e4e3012c3707486d12 100644 (file)
@@ -432,14 +432,15 @@ static void generic_usage(bool is_server)
 {
   cout << "\
   --conf/-c        Read configuration from the given configuration file\n\
-  -d               Run in foreground, log to stderr.\n\
-  -f               Run in foreground, log to usual location.\n\
   --id/-i          set ID portion of my name\n\
   --name/-n        set name (TYPE.ID)\n\
   --version        show version and quit\n\
 " << std::endl;
 
   if (is_server) {
+    cout << "\
+  -d               Run in foreground, log to stderr.\n\
+  -f               Run in foreground, log to usual location.\n";
     cout << "  --debug_ms N\n";
     cout << "        set message debug level (e.g. 1)\n";
   }