mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Add G_OPTION_FLAG_NO_ARG and G_OPTION_FLAG_FILENAME to allow greater
2005-06-18 Matthias Clasen <mclasen@redhat.com> * glib/goption.h: * glib/goption.c: Add G_OPTION_FLAG_NO_ARG and G_OPTION_FLAG_FILENAME to allow greater control of G_OPTION_ARG_CALLBACK options. (#302632, Dan Winship) * tests/option-test.c: test callback args
This commit is contained in:
committed by
Matthias Clasen
parent
2e5ed68b65
commit
3a7a096682
@@ -1,3 +1,8 @@
|
||||
2005-06-18 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/tmpl/option.sgml (GOptionFlags): document
|
||||
G_OPTION_FLAG_NO_ARG and G_OPTION_FLAG_FILENAME (Dan Winship)
|
||||
|
||||
2005-06-16 Mathieu Lacage <mathieu@gnome.org>
|
||||
|
||||
* gobject/tut_gtype.xml: fix typo reported by Hong Gang XU.
|
||||
|
@@ -124,9 +124,6 @@ main (int argc, char *argv[])
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### ENUM GOptionError ##### -->
|
||||
<para>
|
||||
Error codes returned by option parsing.
|
||||
@@ -267,8 +264,14 @@ Flags which modify individual options.
|
||||
output.
|
||||
@G_OPTION_FLAG_IN_MAIN: The option appears in the main section of the
|
||||
<option>--help</option> output, even if it is defined in a group.
|
||||
@G_OPTION_FLAG_REVERSE: For options of the G_OPTION_ARG_NONE kind, this flag
|
||||
@G_OPTION_FLAG_REVERSE: For options of the %G_OPTION_ARG_NONE kind, this flag
|
||||
indicates that the sense of the option is reversed.
|
||||
@G_OPTION_FLAG_NO_ARG: For options of the %G_OPTION_ARG_CALLBACK kind,
|
||||
this flag indicates that the callback does not take any argument
|
||||
(like a %G_OPTION_ARG_NONE option). Since 2.8
|
||||
@G_OPTION_FLAG_FILENAME: For options of the %G_OPTION_ARG_CALLBACK
|
||||
kind, this flag indicates that the argument should be passed to the
|
||||
callback in the GLib filename encoding rather than UTF-8. Since 2.8
|
||||
|
||||
<!-- ##### MACRO G_OPTION_REMAINING ##### -->
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user