2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * glib/goption.c: Documentation updates.
+
Handle conflicts between options in different groups. (#156808)
* glib/goption.c (g_option_context_parse): When a long option does not
2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * glib/goption.c: Documentation updates.
+
Handle conflicts between options in different groups. (#156808)
* glib/goption.c (g_option_context_parse): When a long option does not
2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * glib/goption.c: Documentation updates.
+
Handle conflicts between options in different groups. (#156808)
* glib/goption.c (g_option_context_parse): When a long option does not
2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * glib/goption.c: Documentation updates.
+
Handle conflicts between options in different groups. (#156808)
* glib/goption.c (g_option_context_parse): When a long option does not
2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * glib/goption.c: Documentation updates.
+
Handle conflicts between options in different groups. (#156808)
* glib/goption.c (g_option_context_parse): When a long option does not
+2004-11-01 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/tmpl/option.sgml: Updates
+
2004-10-31 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/windows.sgml: Document G_WIN32_IS_NT_BASED,
<informalexample><screen>
Usage:
- testtreemodel [OPTION...]
+ testtreemodel [OPTION...] - test tree model performance
Help Options:
--help Show help options
{
GError *error = NULL;
- context = g_option_context_new ("[OPTION...]");
+ context = g_option_context_new ("- test tree model performance");
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_parse (context, &argc, &argv, &error);
@long_name: The long name of an option can be used to specify it
in a commandline as --<replaceable>long_name</replaceable>. Every
- option must have a long name.
+ option must have a long name. To resolve conflicts if multiple
+ option groups contain the same long name, it is also possible to
+ specify the option as
+ --<replaceable>groupname</replaceable>-<replaceable>long_name</replaceable>.
@short_name: If an option has a short name, it can be specified
-<replaceable>short_name</replaceable> in a commandline.
@flags: Flags from #GOptionEntryFlags.
/**
* g_option_context_new:
- * @parameter_string: the parameter string to be used in
- * <option>--help</option> output.
+ * @parameter_string: a string which is displayed in
+ * the first line of <option>--help</option> output, after
+ * <literal><replaceable>programname</replaceable> [OPTION...]</literal>
*
* Creates a new option context.
*