5 ms·
As is typically the case in software, different standards tend to emerge from different projects and their associated tools. Two of the primary diverging Linux
by dredmorbius 10y ago
As is typically the case in software, different standards tend to emerge from different projects and their associated tools.
Two of the primary diverging Linux/Unix standards are FreeBSD (arguably the older, from AT&T & BSD traditions) and GNU.
The GNU programming standards specifies standards for command line interfaces in section 4.7, strongly influenced by GNU getopt(3). https://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html https://www.gnu.org/prep/standards/html_node/Command_002dLin...
This references the Table of Long Options (this needs to be worked in to Game of Thrones): https://www.gnu.org/prep/standards/html_node/Option-Table.html#Option-Table https://www.gnu.org/prep/standards/html_node/Option-Table.ht...
For FreeBSD, the equivalent guide appears to be (I'm not an expert at this, so salt appropriately) the kernel source file style guide: https://www.freebsd.org/cgi/man.cgi?query=style&sektion=9&manpath=freebsd-release-ports https://www.freebsd.org/cgi/man.cgi?query=style&sektion=9&ma...
There may be another source.
I've seen other significant projects impose their own argument styles. Among those:
MIT/X11 has its own family of arguments.
Various toolkits seem to engender their own styles.
The GNOME and KDE projects have tended to both adopt idiosyncratic and largely undocumented argument formats. I find both tremendously frustrating.
Major applications often develop yet more idiosyncratic command and argument syntax. Chrome, Firefox, and LibreOffice come to mind.
I'm going to pretend Java doesn't exist at all. Nope. It's a myth.
The notorious 'dd' owes its syntax to mainframe JCL notation, from which it is derived.