Comment

Comment by elboulangero

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

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton