mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
pybind/ceph_argparse: accept flexible req
True and true both acceptable Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
This commit is contained in:
parent
9ffbac6fc5
commit
9bdf43e707
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user