From: Tim Serong Date: Fri, 19 May 2017 12:23:54 +0000 (+1000) Subject: osd/mon/mds: unify usage text, always use stdout X-Git-Tag: ses5-milestone6~9^2~8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4da9b4862da8873091782e083e9e9085c33308dc;p=ceph.git osd/mon/mds: unify usage text, always use stdout This unifies the first line of usage text: angle brackets to indicate a mandatory option, and uppercase ID to match the output from generic_server_usage(). It also ensures ceph-mon prints all of its usage information to stdout, same as the other daemons. Signed-off-by: Tim Serong --- diff --git a/src/ceph_mds.cc b/src/ceph_mds.cc index 7c2a9503478e..b6cff8348eba 100644 --- a/src/ceph_mds.cc +++ b/src/ceph_mds.cc @@ -53,7 +53,7 @@ using namespace std; static void usage() { - cout << "usage: ceph-mds -i name [flags] [[--hot-standby][rank]]\n" + cout << "usage: ceph-mds -i [flags] [[--hot-standby][rank]]\n" << " -m monitorip:port\n" << " connect to monitor at given address\n" << " --debug_mds n\n" diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc index 6e8fd1d5749e..a7be9694a922 100644 --- a/src/ceph_mon.cc +++ b/src/ceph_mon.cc @@ -158,25 +158,26 @@ int check_mon_data_empty() static void usage() { - cerr << "usage: ceph-mon -i monid [flags]" << std::endl; - cerr << " --debug_mon n\n"; - cerr << " debug monitor level (e.g. 10)\n"; - cerr << " --mkfs\n"; - cerr << " build fresh monitor fs\n"; - cerr << " --force-sync\n"; - cerr << " force a sync from another mon by wiping local data (BE CAREFUL)\n"; - cerr << " --yes-i-really-mean-it\n"; - cerr << " mandatory safeguard for --force-sync\n"; - cerr << " --compact\n"; - cerr << " compact the monitor store\n"; - cerr << " --osdmap \n"; - cerr << " only used when --mkfs is provided: load the osdmap from \n"; - cerr << " --inject-monmap \n"; - cerr << " write the monmap to the local monitor store and exit\n"; - cerr << " --extract-monmap \n"; - cerr << " extract the monmap from the local monitor store and exit\n"; - cerr << " --mon-data \n"; - cerr << " where the mon store and keyring are located\n"; + cout << "usage: ceph-mon -i [flags]\n" + << " --debug_mon n\n" + << " debug monitor level (e.g. 10)\n" + << " --mkfs\n" + << " build fresh monitor fs\n" + << " --force-sync\n" + << " force a sync from another mon by wiping local data (BE CAREFUL)\n" + << " --yes-i-really-mean-it\n" + << " mandatory safeguard for --force-sync\n" + << " --compact\n" + << " compact the monitor store\n" + << " --osdmap \n" + << " only used when --mkfs is provided: load the osdmap from \n" + << " --inject-monmap \n" + << " write the monmap to the local monitor store and exit\n" + << " --extract-monmap \n" + << " extract the monmap from the local monitor store and exit\n" + << " --mon-data \n" + << " where the mon store and keyring are located\n" + << std::endl; generic_server_usage(); } diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index f4d28751a168..16c4dc231e59 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -69,7 +69,7 @@ void handle_osd_signal(int signum) static void usage() { - cout << "usage: ceph-osd -i \n" + cout << "usage: ceph-osd -i [flags]\n" << " --osd-data PATH data directory\n" << " --osd-journal PATH\n" << " journal file or block device\n"