Multiplatform builds of GNU getopt. Powered by Cosmopolitan Libc and the Chimp file format.
This getopt build is packaged as a Chimp polyglot script that works across platforms with minimal dependencies:
cmd.exe(Windows Command Processor)powershell.exe(for version checking and base64 decoding fallback)
The downloaded artifact must be renamed to getopt.cmd to be run from a Windows shell. Alternatively, run it
with Bash on Windows.
- Bourne shell (
/bin/sh) - Core utilities:
uname,dd,chmod,exec,mkdir,tail,expr,exit - Base64 decoder (tries in order):
base64commandgbase64command (GNU base64)openssl(excludes LibreSSL and MidnightBSD variants)python3(versions 3.13, 3.12, 3.11, 3.10, 3.9)