3 ms·
In the same vein, as an old unix dog, I'm very annoyed by golang's -help vs -h and --help. Given the pedigree of the creators, I really am quite puzzled as to
by xarope 5y ago
In the same vein, as an old unix dog, I'm very annoyed by golang's -help vs -h and --help. Given the pedigree of the creators, I really am quite puzzled as to why they took this approach. Is there some sort of injoke where -help meant -h[elp] which would therefore expand to e.g. -he, -hl, -hp, -hel, -hlp, -hep ad nauseum?
- layer8 5y agoMaybe they were inspired by Java: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html#BABDJJFI https://docs.oracle.com/javase/8/docs/technotes/tools/unix/j...
- mikojan 5y agoHeres the why: https://groups.google.com/g/golang-nuts/c/3myLL-6mA94/m/VUkLtSOyS-YJ https://groups.google.com/g/golang-nuts/c/3myLL-6mA94/m/VUkL...
- deleted 5y ago[deleted]
- scbrg 5y agoIs that so odd? The creators have a background that predate the (relatively recent - even more so when golang was created) GNU convention. A convention that is (or at least was) mostly prevalent on Linux anyway. Personally, I'm puzzled when people act as if the GNU double dash convention is a universal standard.
- int_19h 5y ago-foo wasn't all that uncommon in Unix, especially before GNU. Do you remember command line options for oldschool X11 stuff? e.g. xterm -fn 7x13bold -geometry 80x32+10+50