The children
field in a struct argp
allows other argp
parsers to be combined with the referencing one to parse a single set of
arguments. It should point to a vector of struct argp_child
,
terminated by an entry having a value of zero in the argp
field.
Where conflicts between combined parsers arise (for instance, if two specify an option with the same name), they are resolved in favor of the parent argp parsers, or earlier argp parsers in the list of children.
children
field in a struct argp
. The fields are as follows:
const struct argp *argp
int flags
const char *header
""
. As with header
strings specified in an option entry, the value conventionally has
`:' as the last character. See section Specifying Options in an Argp Parser.
int group
group
field in struct argp_option
(see section Specifying Options in an Argp Parser), but all child-groupings follow parent options at a particular
group level. If both this field and header
are zero, then the
child's options aren't grouped together at all, but rather merged with
the parent options (merging the child's grouping levels with the
parents).
Go to the first, previous, next, last section, table of contents.