add description function

This commit is contained in:
Emmanuel Garette 2019-07-29 22:06:04 +02:00
parent cecc3b4535
commit 76d63eb707
2 changed files with 6 additions and 0 deletions

View File

View File

@ -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: