+2005-06-22 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (parse_short_option, parse_long_option):
+ Pass the option name also in the NO_ARG case. (#308602,
+ Masatake YAMATO)
+
2005-06-22 Tor Lillqvist <tml@novell.com>
* glib/gfileutils.c (g_makepath): New function. Creates a
+2005-06-22 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (parse_short_option, parse_long_option):
+ Pass the option name also in the NO_ARG case. (#308602,
+ Masatake YAMATO)
+
2005-06-22 Tor Lillqvist <tml@novell.com>
* glib/gfileutils.c (g_makepath): New function. Creates a
+2005-06-22 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (parse_short_option, parse_long_option):
+ Pass the option name also in the NO_ARG case. (#308602,
+ Masatake YAMATO)
+
2005-06-22 Tor Lillqvist <tml@novell.com>
* glib/gfileutils.c (g_makepath): New function. Creates a
+2005-06-22 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (parse_short_option, parse_long_option):
+ Pass the option name also in the NO_ARG case. (#308602,
+ Masatake YAMATO)
+
2005-06-22 Tor Lillqvist <tml@novell.com>
* glib/gfileutils.c (g_makepath): New function. Creates a
{
if (NO_ARG (&group->entries[j]))
{
+ gchar *option_name;
+
+ option_name = g_strdup_printf ("-%c", group->entries[j].short_name);
parse_arg (context, group, &group->entries[j],
- NULL, NULL, error);
+ NULL, option_name, error);
+ g_free (option_name);
+
*parsed = TRUE;
}
else
if (NO_ARG (&group->entries[j]) &&
strcmp (arg, group->entries[j].long_name) == 0)
{
+ gchar *option_name;
+
+ option_name = g_strconcat ("--", group->entries[j].long_name, NULL);
parse_arg (context, group, &group->entries[j],
- NULL, NULL, error);
+ NULL, option_name, error);
+ g_free(option_name);
add_pending_null (context, &((*argv)[*index]), NULL);
*parsed = TRUE;