]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: move generic server usage after all options 2248/head
authorAbhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Wed, 13 Aug 2014 10:41:15 +0000 (16:11 +0530)
committerAbhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Wed, 13 Aug 2014 10:41:15 +0000 (16:11 +0530)
commite86fdefe202a74f800ec204e8e4ba08c0adc577d
tree2d9f9c55c617e869043cb9a39f4e275e9782a6e8
parent541006c83dc3acf49ae7f3d0b389bdcd9a5eebaa
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>     region in which radosgw runs
  --rgw-zone=<zone>         zone in which radosgw runs
  --rgw-socket-path=<path>  specify a unix domain socket path
  -m monaddress[:port]      connect to specified monitor
  --keyring=<path>          path to radosgw keyring
  --logfile=<logfile>       file to log debug output
  --debug-rgw=<log-level>/<memory-level>  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 <abhishek.lekshmanan@gmail.com>
src/rgw/rgw_main.cc