diff --git a/tiramisu/setting.py b/tiramisu/setting.py index d6ee8ac..f8c1d37 100644 --- a/tiramisu/setting.py +++ b/tiramisu/setting.py @@ -399,7 +399,9 @@ class Settings(object): "").format(opt_or_descr._name, str(props)), props) - def setpermissive(self, permissive, path=None): + def setpermissive(self, permissive, opt=None, path=None): + if opt is not None and path is None: + path = self._get_opt_path(opt) if not isinstance(permissive, tuple): raise TypeError(_('permissive must be a tuple')) self._p_.setpermissive(path, permissive)