Re:Installing A/UX on the Quadra 610 (2018)
by floatboth on Thursday December 26, 2019 @08:21AM
(#21883588)
If only http://docopt.org was invented and standardized and widely adopted in the 80s…
> good UNIX programmers know to use getopt(3C) libc function
Well, when writing in C. People don't really use this from other languages.
Re:Installing A/UX on the Quadra 610 (2018)
by ohithereyou on Thursday December 26, 2019 @10:52AM
(#21884600)
We use getopt style command line parameter parsing in at least Java, Perl, Python, and BASH at work, so I wouldn't say that this is unused.
We're also primarily a UNIX shop at work, so that might be part of it.
Just to set the record straight though, while the options in UNIX programs are very different from program to program, good UNIX programmers know to use getopt(3C) libc function and not invent their own custom parser. All programs which use getopt(3C) have a uniform, consistent option parser and command line behavior. https://illumos.org/man/3c/getopt