3 ms·
The Java tools predate the GNU convention (or at best were developed at the same time, unbeknownst to each other). Golang uses single-dash as well (but also acc
by layer8 2y ago
The Java tools predate the GNU convention (or at best were developed at the same time, unbeknownst to each other). Golang uses single-dash as well (but also accepts double-dash), as do PowerShell and Unix commands like find. In early Unix, there wasn’t a clear convention to use a dash for options at all (dd, tar, ps).
- kevin_thibedeau 2y agoGNU was established 10 years before Java.
- layer8 2y agoGNU double-dash long options were devised only after POSIX disallowed using the plus sign in 1992: https://blog.djmnet.org/2019/08/02/why-do-long-options-start-with/ https://blog.djmnet.org/2019/08/02/why-do-long-options-start... Java was already two years in development at that time.