3 ms·
"-?" is supported by apps that use GLib for option parsing: > GOption will recognize the `--help`, `-?`, `--help-all` > and `--help-groupname` options * (wher
by elboulangero 4y ago
"-?" is supported by apps that use GLib for option parsing:
> GOption will recognize the `--help`, `-?`, `--help-all`
> and `--help-groupname` options * (where `groupname` is
> the name of a #GOptionGroup)
Ref: https://gitlab.gnome.org/GNOME/glib/-/blob/main/glib/goption.c#L52 https://gitlab.gnome.org/GNOME/glib/-/blob/main/glib/goption...
Looking at the Git history, it was recognized straight from the start, when GOption was introduced in 2004. No idea why they chose it, and if it was their own idea, or if they followed some existing convention from somewhere else...