GLib.OptionContext.prototype.add_group

function add_group(group: GLib.OptionGroup): void {
    // Gjs wrapper for g_option_context_add_group()
}
  

Adds a GLib.OptionGroup to the context, so that parsing with context will recognize the options in the group. Note that the group will be freed together with the context when GLib.OptionContext.prototype.free is called, so you must not free the group yourself after adding it to a context.

Since 2.6

group

the group to add