OptionContext.setHelpEnabled

void setHelpEnabled(bool helpEnabled)

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

Parameters

helpEnabledtrue to enable --help, false to disable it