From: Gu Zhongyan Date: Fri, 9 Mar 2018 01:53:56 +0000 (+0800) Subject: pybind/ceph_argparse: accept flexible req X-Git-Tag: v13.0.2~28^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20791%2Fhead;p=ceph.git pybind/ceph_argparse: accept flexible req True and true both acceptable Signed-off-by: Gu Zhongyan --- diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index 45049797d592..5d587b4ed4b4 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -618,7 +618,7 @@ class argdesc(object): else: self.t = t self.typeargs = kwargs - self.req = bool(req == True or req == 'True') + self.req = req in (True, 'True', 'true') self.name = name self.N = (n in ['n', 'N'])