GLib.OptionEntry¶
record (struct)
-
OptionArg.NONE:gbooleanOptionArg.STRING:gchar*OptionArg.INT:gintOptionArg.FILENAME:gchar*OptionArg.STRING_ARRAY:gchar**OptionArg.FILENAME_ARRAY:gchar**OptionArg.DOUBLE:gdouble
If
argtype isOptionArg.STRINGorOptionArg.FILENAME, the location will contain a newly allocated string if the option was given. That string needs to be freed by the callee usingfree. Likewise ifargtype isOptionArg.STRING_ARRAYorOptionArg.FILENAME_ARRAY, the data should be freed usingstrfreev. A GOptionEntry struct defines a single option. To have an effect, they must be added to aOptionGroupwithOptionContext.add_main_entriesorOptionGroup.add_entries.