GLib.OptionContext.prototype.add_main_entries
function add_main_entries(entries: GLib.OptionEntry, translation_domain: String): void {
// Gjs wrapper for g_option_context_add_main_entries()
}
A convenience function which creates a main group if it doesn't exist, adds the entries to it and sets the translation domain.
Since 2.6
- entries
a null-terminated array of #GOptionEntrys
- translation_domain
a translation domain to use for translating the `--help` output for the options in entries with gettext(), or null