3 ms·
Why not use `getopt()` which already exists in libc? (Or even `getopt_long()` if you're Linux/glibc-only? Author mentions not supporting Windows, but is unclea
by Karellen 3y ago
Why not use `getopt()` which already exists in libc?
(Or even `getopt_long()` if you're Linux/glibc-only? Author mentions not supporting Windows, but is unclear whether non-Linux Unices, e.g. *BSD, are intended target platforms.)
https://manpages.debian.org/bookworm/manpages-dev/getopt.3.en.html https://manpages.debian.org/bookworm/manpages-dev/getopt.3.e...
- deleted 3y ago[deleted]
- steveklabnik 3y agoIf you're trying to implement as much in Rust as possible, keeping an important part of the codebase in C code feels like the wrong decision, in my opinion.