2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-23 08:50:16 +01:00

return the value of opt.add_option()

This commit is contained in:
Thomas Nagy 2012-05-17 14:57:58 +02:00
parent 5d6c12be1f
commit cf773b89de

View File

@ -193,7 +193,7 @@ class OptionsContext(Context.Context):
ctx.add_option('-u', '--use', dest='use', default=False, action='store_true',
help='a boolean option')
"""
self.parser.add_option(*k, **kw)
return self.parser.add_option(*k, **kw)
def add_option_group(self, *k, **kw):
"""