GLib.OptionContext.prototype.set_main_group

function set_main_group(group: GLib.OptionGroup): void {
    // Gjs wrapper for g_option_context_set_main_group()
}
  

Sets a GLib.OptionGroup as main group of the context. This has the same effect as calling GLib.OptionContext.prototype.add_group, the only difference is that the options in the main group are treated differently when generating `--help` output.

Since 2.6

group

the group to set as main group