Post #2569967
2026-05-14 21:22 UTC
@aurisc4@floss.social in fact GNU libc getopt() reorders argv to move the options forward, so that the "argc -= optind; argv += optind;" trick to keep just the positional arguments keeps working.
(Classic getopt() stops at the first non-option argument, an optional behaviour for glibc)
Replies (0)
No replies.