Hi I just noticed a somewhat weird behaviour of gengetopt's config file parser in combination with multiple options and the override feature.
If a (string) option is declared as multiple in the ggo file and was given one or more times when calling the config file parser for the first time, everything works as expected: the xxx_given field contains the number of times this option was given, and xxx_option_arg[] is a NULL-terminated array of that size containing the given values. If the config file parser is later called again with a params struct that enables override, I would expect it to _replace_ the array by the values which have been found in the config file during this second call. After all, this is what the word "override" indicates. However, the new set of options are _appended_ to the old values instead. Is this behaviour intended? If it is, is that feature documented anywhere? If it isn't intended, what could be done to fix the situation while retaining backwards compatibility? Thanks Andre -- The only person who always got his work done by Friday was Robinson Crusoe
signature.asc
Description: Digital signature
_______________________________________________ Help-gengetopt mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gengetopt
