gnu-getopt
Install command:
brew install gnu-getoptCommand-line option parsing utility
https://github.com/util-linux/util-linux
License: GPL-2.0-or-later
Development: Pull requests
Formula JSON API: /api/formula/gnu-getopt.json
Formula code: gnu-getopt.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 2.42.4 |
Patches:
| https://github.com/util-linux/util-linux/commit/d22edc2f100eb8dd83d3515758565cb73b0d2eed |
Keg-only because macOS provides BSD getopt.
Binaries:
getopt
GitHub Packages downloads:
| Last 30 days | 55,050 |
|---|---|
| Downloads | 13,530,667 |
| Analytics install events (30 days) | 4,070 |
| Downloads / install events (30 days) | 13.5× |
Source: GitHub Packages, fetched 2026-12-04T01:05:18Z. Analytics dates: 2026-11-04 to 2026-12-04. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 4,069 | 10,224 | 48,612 |
Installs (--HEAD) | 1 | 3 | 24 |
| Installs on Request | 813 | 3,423 | 20,421 |
Installs on Request (--HEAD) | 1 | 3 | 24 |
| Build Errors | 29 |