GLib.OptionContext.prototype.set_help_enabled

function set_help_enabled(help_enabled: Boolean): void {
    // Gjs wrapper for g_option_context_set_help_enabled()
}
  

Enables or disables automatic generation of `--help` output. By default, GLib.OptionContext.prototype.parse recognizes `--help`, `-h`, `-?`, `--help-all` and `--help-groupname` and creates suitable output to stdout.

Since 2.6

help_enabled

true to enable `--help`, false to disable it