From: Sage Weil Date: Wed, 18 Sep 2019 23:23:12 +0000 (-0500) Subject: pybind/ceph_argparse: add :int or :float to numerical args X-Git-Tag: v15.1.0~1389^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fbe0b2659ddac61d1f4602ec21330c0bcecc6258;p=ceph-ci.git pybind/ceph_argparse: add :int or :float to numerical args For example, osd tier add-cache Leave off permissible ranges for the sake of brevity. Signed-off-by: Sage Weil --- diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index bda37e6ab6e..eac7005e2e5 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -716,6 +716,10 @@ class argdesc(object): # CephName commands similarly only have one arg of the # type, so is good. chunk = '' + elif self.t == CephInt: + chunk = '<{0}:int>'.format(self.name) + elif self.t == CephFloat: + chunk = '<{0}:float>'.format(self.name) else: chunk = '<{0}>'.format(self.name) s = chunk