mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Documentation updates.
This commit is contained in:
parent
57f8507273
commit
938f1a9a5a
@ -1,5 +1,7 @@
|
|||||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c: Documentation updates.
|
||||||
|
|
||||||
Handle conflicts between options in different groups. (#156808)
|
Handle conflicts between options in different groups. (#156808)
|
||||||
|
|
||||||
* glib/goption.c (g_option_context_parse): When a long option does not
|
* glib/goption.c (g_option_context_parse): When a long option does not
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c: Documentation updates.
|
||||||
|
|
||||||
Handle conflicts between options in different groups. (#156808)
|
Handle conflicts between options in different groups. (#156808)
|
||||||
|
|
||||||
* glib/goption.c (g_option_context_parse): When a long option does not
|
* glib/goption.c (g_option_context_parse): When a long option does not
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c: Documentation updates.
|
||||||
|
|
||||||
Handle conflicts between options in different groups. (#156808)
|
Handle conflicts between options in different groups. (#156808)
|
||||||
|
|
||||||
* glib/goption.c (g_option_context_parse): When a long option does not
|
* glib/goption.c (g_option_context_parse): When a long option does not
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c: Documentation updates.
|
||||||
|
|
||||||
Handle conflicts between options in different groups. (#156808)
|
Handle conflicts between options in different groups. (#156808)
|
||||||
|
|
||||||
* glib/goption.c (g_option_context_parse): When a long option does not
|
* glib/goption.c (g_option_context_parse): When a long option does not
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c: Documentation updates.
|
||||||
|
|
||||||
Handle conflicts between options in different groups. (#156808)
|
Handle conflicts between options in different groups. (#156808)
|
||||||
|
|
||||||
* glib/goption.c (g_option_context_parse): When a long option does not
|
* glib/goption.c (g_option_context_parse): When a long option does not
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-11-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/tmpl/option.sgml: Updates
|
||||||
|
|
||||||
2004-10-31 Matthias Clasen <mclasen@redhat.com>
|
2004-10-31 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/tmpl/windows.sgml: Document G_WIN32_IS_NT_BASED,
|
* glib/tmpl/windows.sgml: Document G_WIN32_IS_NT_BASED,
|
||||||
|
@ -53,7 +53,7 @@ and write a text similar to the one shown in the following example to stdout.
|
|||||||
|
|
||||||
<informalexample><screen>
|
<informalexample><screen>
|
||||||
Usage:
|
Usage:
|
||||||
testtreemodel [OPTION...]
|
testtreemodel [OPTION...] - test tree model performance
|
||||||
|
|
||||||
Help Options:
|
Help Options:
|
||||||
--help Show help options
|
--help Show help options
|
||||||
@ -109,7 +109,7 @@ main (int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
GError *error = NULL;
|
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_main_entries (context, entries, GETTEXT_PACKAGE);
|
||||||
g_option_context_add_group (context, gtk_get_option_group (TRUE));
|
g_option_context_add_group (context, gtk_get_option_group (TRUE));
|
||||||
g_option_context_parse (context, &argc, &argv, &error);
|
g_option_context_parse (context, &argc, &argv, &error);
|
||||||
@ -291,7 +291,10 @@ g_option_context_add_main_entries() or g_option_group_add_entries().
|
|||||||
|
|
||||||
@long_name: The long name of an option can be used to specify it
|
@long_name: The long name of an option can be used to specify it
|
||||||
in a commandline as --<replaceable>long_name</replaceable>. Every
|
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
|
@short_name: If an option has a short name, it can be specified
|
||||||
-<replaceable>short_name</replaceable> in a commandline.
|
-<replaceable>short_name</replaceable> in a commandline.
|
||||||
@flags: Flags from #GOptionEntryFlags.
|
@flags: Flags from #GOptionEntryFlags.
|
||||||
|
@ -116,8 +116,9 @@ g_option_error_quark (void)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_option_context_new:
|
* g_option_context_new:
|
||||||
* @parameter_string: the parameter string to be used in
|
* @parameter_string: a string which is displayed in
|
||||||
* <option>--help</option> output.
|
* the first line of <option>--help</option> output, after
|
||||||
|
* <literal><replaceable>programname</replaceable> [OPTION...]</literal>
|
||||||
*
|
*
|
||||||
* Creates a new option context.
|
* Creates a new option context.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user