]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: add generic --help output
authorTim Serong <tserong@suse.com>
Fri, 19 May 2017 12:10:03 +0000 (22:10 +1000)
committerTim Serong <tserong@suse.com>
Fri, 19 May 2017 12:19:58 +0000 (22:19 +1000)
commit6135c97d7b02a4506fcb86f9a8e979230e53087f
treea489799cf3d4315c7b3d5d4f6306e0b60894b4dc
parentf6b388a3a363824579f4f1353e67e2ff1b8952d6
mgr: add generic --help output

Creating an MgrStandby in order to call its usage() method has
two problems:

1) MgrStandby wants to connect to a running cluster; if the
   cluster isn't up, you'll be left staring at a blinking cursor.
2) MgrStandby::usage() doesn't print anything anyway.

This commit takes pretty much the same approach to printing
usage information as ceph_mon.cc, ceph_osd.cc and ceph_mds.cc.

Signed-off-by: Tim Serong <tserong@suse.com>
src/ceph_mgr.cc
src/mgr/MgrStandby.h