]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_conf: do not "exit(1)" in usage()
authorKefu Chai <kchai@redhat.com>
Tue, 16 Jul 2019 03:52:47 +0000 (11:52 +0800)
committerBrad Hubbard <bhubbard@redhat.com>
Mon, 14 Dec 2020 02:08:05 +0000 (12:08 +1000)
commitd10f380204f10b83a4efddfe792b54f1115d791a
tree97d8d3fd0f01ca5451309e6ca6099ef360a25137
parent516a6fd095f54d57ecd77650840345d464009631
tools/ceph_conf: do not "exit(1)" in usage()

we always return right after calling `usage()`, there is no need to
`exit(1)` in usage. and more importantly, we should not `exit(1)` if use
asks for `help` by using `ceph-conf <path> help`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit ab74ea30279c866320c84d760e93c123b7a95557)
src/test/cli/ceph-conf/help.t
src/tools/ceph_conf.cc