Skip to content

Don't override -h command line option

Felipe Borges requested to merge dont-override-help-cmdline-option into master

The GLib internal call in https://gitlab.gnome.org/GNOME/glib/blob/master/glib/goption.c#L978 decides whether to use '-h' or '-?'. The context_has_h_entry () method looks up in the application-defined "main" option group for an override in '-h', and if its been re-defined, it will print '-?' instead.

See commit glib@49172a71

The solution for this in Boxes is to just delete our help option definition, so we don't override GLib's default option, and let it print '-h' instead.

Fixes #384 (closed)

Merge request reports