Fixes: #10888
Signed-off-by: Kefu Chai <kchai@redhat.com>
function test_mon_mon()
{
+ # print help message
+ ceph mon
# no mon add/remove
ceph mon dump
ceph mon getmap -o $TMPDIR/monmap.$$
[ "$id" = "$id2" ]
ceph osd rm $id
+ ceph osd
ceph osd ls
ceph osd pool create data 10
ceph osd lspools | grep data
print >> sys.stderr, '"{0} tell" is deprecated; try "tell {0}.<id>" instead (id can be "*") '.format(childargs[0])
return 1
+ if childargs in [['mon'], ['osd']]:
+ parsed_args.help = True
+
if parsed_args.help:
# short default timeout for -h
if not timeout: