diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-03-04 01:36:51 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-03-04 01:55:18 -0500 |
commit | 54e474931e4013cf0088df479018d9b7b156e637 (patch) | |
tree | 6d78edc6e424eab26ff6d4f31aadc6f41c2d7b85 /gio/gapplicationcommandline.c | |
parent | d2a2fe96a3e9ddf5516bb138f365afec3e68a400 (diff) | |
download | glib-54e474931e4013cf0088df479018d9b7b156e637.tar.gz |
Fix a typo
Diffstat (limited to 'gio/gapplicationcommandline.c')
-rw-r--r-- | gio/gapplicationcommandline.c | 9 |
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> |