mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Merge branch 'flag-reverse-docs' into 'main'
goption: Slightly improve the documentation for G_OPTION_FLAG_REVERSE See merge request GNOME/glib!2830
This commit is contained in:
commit
58172a92bf
@ -60,7 +60,8 @@ typedef struct _GOptionEntry GOptionEntry;
|
||||
* @G_OPTION_FLAG_IN_MAIN: The option appears in the main section of the
|
||||
* `--help` output, even if it is defined in a group.
|
||||
* @G_OPTION_FLAG_REVERSE: For options of the %G_OPTION_ARG_NONE kind, this
|
||||
* flag indicates that the sense of the option is reversed.
|
||||
* flag indicates that the sense of the option is reversed. i.e. %FALSE will
|
||||
* be stored into the argument rather than %TRUE.
|
||||
* @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
|
||||
@ -94,7 +95,7 @@ typedef enum
|
||||
|
||||
/**
|
||||
* GOptionArg:
|
||||
* @G_OPTION_ARG_NONE: No extra argument. This is useful for simple flags.
|
||||
* @G_OPTION_ARG_NONE: No extra argument. This is useful for simple flags or booleans.
|
||||
* @G_OPTION_ARG_STRING: The option takes a UTF-8 string argument.
|
||||
* @G_OPTION_ARG_INT: The option takes an integer argument.
|
||||
* @G_OPTION_ARG_CALLBACK: The option provides a callback (of type
|
||||
|
Loading…
Reference in New Issue
Block a user