configutils.Values: Make it possible to pass values
This commit is contained in:
parent
ab02fcb116
commit
50c847562f
@ -72,9 +72,9 @@ class Values:
|
|||||||
opt: The Option being customized.
|
opt: The Option being customized.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, opt):
|
def __init__(self, opt, values=None):
|
||||||
self.opt = opt
|
self.opt = opt
|
||||||
self._values = []
|
self._values = values or []
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return utils.get_repr(self, opt=self.opt, values=self._values,
|
return utils.get_repr(self, opt=self.opt, values=self._values,
|
||||||
|
Loading…
Reference in New Issue
Block a user