add_main_entries


Description:

public void add_main_entries (OptionEntry[] entries, string? translation_domain)

A convenience function which creates a main group if it doesn't exist, adds the entries to it and sets the translation domain.

Parameters:

this

a OptionContext

entries

a null-terminated array of OptionEntrys

translation_domain

a translation domain to use for translating the `--help` output for the options in entries with gettext, or null