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