793 B
793 B
Generic container: OptionDescription
Option description's description
First of all, an option description is a name, a description and children.
name
The "name" is important to retrieve this option description.
description
The "description" allows the user to understand where this option description will contains.
children
List of children option.
NOTE: the option can be an option or an other option description
Let's try:
from tiramisu import StrOption, OptionDescription
child1 = StrOption('first', 'First basic option')
child2 = StrOption('second', 'Second basic option')
OptionDescription('basic',
'Basic options',
[child1, child2])
Option description's properties
See property.