Hacker News new | ask | show | jobs
by elboulangero 1532 days 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...

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...