]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/ceph_argparse: add argdesc() method to type classes
authorKefu Chai <kchai@redhat.com>
Sun, 27 Dec 2020 04:44:39 +0000 (12:44 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 14 Jan 2021 14:08:35 +0000 (22:08 +0800)
commit446e03fd005a5ff58b2a29a81c0a15a68d60f28d
tree912e7d6a0dee7aa1878cbcbe80ccebf7ffd3d384
parent09b7e837befd23fdf35dc89a23c16bd5d05eabf9
pybind/ceph_argparse: add argdesc() method to type classes

so they can be used to build argdesc from method annotations, these
argdesc strings will be consumed by ceph CLI to do client-side
validation of command arguments.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/ceph_argparse.py