Complementary groups
Complementary parameter groups consist of N parameters (members) where each member is accompanied by a rule that describes how this parameter's value can be computed from the values of all other parameters. This makes it possible to specify any (N-1) combination of the required parameters where the missing parameter will be computed from the remaining ones. For example:
In order to compute the missing parameter's value the values of the remaining members are passed by name to the completion function (using argument expansion, func(**member_values)
).
Complementary groups support sections similar to "regular" parameter groups (see Groups).
Last updated