Timeline for getopt, getopts or manual parsing - what to use when I want to support both short and long options?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 24, 2021 at 16:18 | comment | added | schily | All shells that are decently written and call the C library function getopt(3c) for getopts include support for long options on Solaris. | |
| Feb 12, 2020 at 16:43 | comment | added | Robert Klemme | getopts is a POSIX standard. I agree though if scripts also need to run on Solaris etc. that do not have GNU bash and tools installed. | |
| Feb 12, 2013 at 19:34 | vote | accept | helpermethod | ||
| Jan 29, 2013 at 13:19 | history | answered | vonbrand | CC BY-SA 3.0 |