OptionContext.setMainGroup

void setMainGroup(glib.option_group.OptionGroup group)

Sets a #GOptionGroup as main group of the context. This has the same effect as calling [glib.option_context.OptionContext.addGroup], the only difference is that the options in the main group are treated differently when generating --help output.

Parameters

groupthe group to set as main group