|
Libecoli 0.11.1
Extensible COmmand LIne library
|
A node that makes its child optional. More...
Functions | |
| struct ec_node * | ec_node_option (const char *id, struct ec_node *node) |
| int | ec_node_option_set_child (struct ec_node *gen_node, struct ec_node *child) |
A node that makes its child optional.
Configuration Schema
Create an option node that makes its child optional.
| id | The node identifier. |
| node | The child node. It is consumed and will be freed when the parent is freed, or immediately on error. |
Set the child of an option node.
| gen_node | The option node. |
| child | The child node. It is consumed and will be freed when the parent is freed, or immediately on error. |