mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-27 12:42:10 +01:00
goption: Don't include parsed option values in G_OPTION_REMAINING
After a call to g_option_context_set_ignore_unknown_options(context, TRUE), the values of short options were included in the array returned by a G_OPTION_REMAINING option. https://bugzilla.gnome.org/show_bug.cgi?id=729563
This commit is contained in:
parent
1565a49144
commit
85606f6093
@ -2038,6 +2038,7 @@ g_option_context_parse (GOptionContext *context,
|
|||||||
if (new_arg)
|
if (new_arg)
|
||||||
new_arg[arg_index] = '\0';
|
new_arg[arg_index] = '\0';
|
||||||
add_pending_null (context, &((*argv)[i]), new_arg);
|
add_pending_null (context, &((*argv)[i]), new_arg);
|
||||||
|
i = new_i;
|
||||||
}
|
}
|
||||||
else if (parsed)
|
else if (parsed)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user