GNOME Bugzilla – Bug 308020
GOption - G_ARG_CALLBACK should allow none arg callback
Last modified: 2005-06-17 18:01:33 UTC
In goption.c, the parse arg function returns FALSE for G_ARG_CALLBACK when value is NULL. This is a undesired effect because you can't use G_ARG_CALLBACK for options that don't have an argument (ie. G_OPTION_ARG_NONE). The user should check if it is NULL and not the library. Other information:
Created attachment 47886 [details] [review] Remove the check of value in parse_arg for switch G_OPTION_ARG_CALLBACK.
Created attachment 47888 [details] [review] Sorry wrong patch. This is the correct one.
*** This bug has been marked as a duplicate of 302632 ***