2 ms·
> So the parsing support is there. And it is used, e.g. tar Yes, the parsing support is there, so software written in the GNU style does build and run correctl
by anjbe 4y ago
> So the parsing support is there. And it is used, e.g. tar
Yes, the parsing support is there, so software written in the GNU style does build and run correctly on BSD systems. But although you bring up tar (a command that is well known for its unusual and unconventional flag handling), it is generally the case that commands on BSD operating systems do not use long options.
Representative examples of prominent 21st century BSD software that do not use long options:
mandoc: https://mandoc.bsd.lv/man/mandoc.1.html https://mandoc.bsd.lv/man/mandoc.1.html
jail: https://www.freebsd.org/cgi/man.cgi?jail(8) https://www.freebsd.org/cgi/man.cgi?jail(8)
zfs: https://www.freebsd.org/cgi/man.cgi?zfs(8) https://www.freebsd.org/cgi/man.cgi?zfs(8)
acme-client: https://man.openbsd.org/acme-client.1 https://man.openbsd.org/acme-client.1
signify: https://man.openbsd.org/signify.1 https://man.openbsd.org/signify.1
doas: https://man.openbsd.org/doas.1 https://man.openbsd.org/doas.1
smtpd: https://man.openbsd.org/smtpd.8 https://man.openbsd.org/smtpd.8
And of course old classics like ssh: https://man.openbsd.org/ssh.1 https://man.openbsd.org/ssh.1
kazinator’s point, that there is no POSIX convention of using -h for help, is correct. That convention came from GNU, and while the idea has spread due to GNU’s influence, there are other prominent schools of thought in the POSIX or Unix‐like ecosystem. I would certainly not agree that long options are the common case on BSD systems.