summaryrefslogtreecommitdiff
path: root/gio/gapplicationcommandline.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-03-04 01:36:51 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-03-04 01:55:18 -0500
commit54e474931e4013cf0088df479018d9b7b156e637 (patch)
tree6d78edc6e424eab26ff6d4f31aadc6f41c2d7b85 /gio/gapplicationcommandline.c
parentd2a2fe96a3e9ddf5516bb138f365afec3e68a400 (diff)
downloadglib-54e474931e4013cf0088df479018d9b7b156e637.tar.gz
Fix a typo
Diffstat (limited to 'gio/gapplicationcommandline.c')
-rw-r--r--gio/gapplicationcommandline.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gio/gapplicationcommandline.c b/gio/gapplicationcommandline.c
index af9e4cedb..7b0175add 100644
--- a/gio/gapplicationcommandline.c
+++ b/gio/gapplicationcommandline.c
@@ -46,6 +46,11 @@ G_DEFINE_TYPE (GApplicationCommandLine, g_application_command_line, G_TYPE_OBJEC
* invocation) or remote (ie: some other process forwarded the
* commandline to this process).
*
+ * The GApplicationCommandLine object can provide the @argc and @argv
+ * parameters for use with the #GOptionContext command-line parsing API,
+ * with the g_application_command_line_get_arguments() function. See
+ * <xref linkend="gapplication-example-cmdline3"> for an example.
+ *
* The exit status of the originally-invoked process may be set and
* messages can be printed to stdout or stderr of that process. The
* lifecycle of the originally-invoked process is tied to the lifecycle
@@ -97,6 +102,10 @@ G_DEFINE_TYPE (GApplicationCommandLine, g_application_command_line, G_TYPE_OBJEC
* (in this example, in an idle). Note that it is necessary to hold the
* application until you are done with the commandline.
* </para>
+ * <para>
+ * This example also shows how to use #GOptionContext for parsing the
+ * commandline arguments.
+ * </para>
* <programlisting>
* <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gapplication-example-cmdline3.c">
* <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>