From: Abhishek Lekshmanan Date: Wed, 13 Aug 2014 10:41:15 +0000 (+0530) Subject: rgw: move generic server usage after all options X-Git-Tag: v0.86~184^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e86fdefe202a74f800ec204e8e4ba08c0adc577d;p=ceph.git rgw: move generic server usage after all options Since generic_server_usage() exits after printing the options, any other help options should be printed before that. Now the help for radosgw looks like the following: ``` usage: radosgw [options...] options: --rgw-region= region in which radosgw runs --rgw-zone= zone in which radosgw runs --rgw-socket-path= specify a unix domain socket path -m monaddress[:port] connect to specified monitor --keyring= path to radosgw keyring --logfile= file to log debug output --debug-rgw=/ set radosgw debug level --conf/-c FILE read configuration from the given configuration file --id/-i ID set ID portion of my name --name/-n TYPE.ID set name --cluster NAME set cluster name (default: ceph) --version show version and quit -d run in foreground, log to stderr. -f run in foreground, log to usual location. --debug_ms N set message debug level (e.g. 1) ``` This should sync the help options displayed similar to man page options in current master. This should close documentation bugs #8112 & #8864 Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index c3de2ae9368a..a971bda46a08 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -727,11 +727,11 @@ int usage() cerr << " --rgw-region= region in which radosgw runs\n"; cerr << " --rgw-zone= zone in which radosgw runs\n"; cerr << " --rgw-socket-path= specify a unix domain socket path\n"; - generic_server_usage(); cerr << " -m monaddress[:port] connect to specified monitor\n"; cerr << " --keyring= path to radosgw keyring\n"; cerr << " --logfile= file to log debug output\n"; cerr << " --debug-rgw=/ set radosgw debug level\n"; + generic_server_usage(); return 0; }