add description function
This commit is contained in:
parent
cecc3b4535
commit
76d63eb707
|
@ -75,6 +75,12 @@ class TiramisuOptionOption:
|
|||
self.schema = schema
|
||||
|
||||
def doc(self):
|
||||
description = self.description()
|
||||
if not description:
|
||||
return self.name()
|
||||
return description
|
||||
|
||||
def description(self):
|
||||
if self.issymlinkoption():
|
||||
schema = self.config.get_schema(self.schema['opt_path'])
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue