Having written the first versions of getopt(3), getopt(1), and associated man pages around 1979 ...
I always thought that this was a brilliant piece of engineering. In less than 70 lines, it was a clever, but not obtuse, bit of code to handle the most common option/flag/switch usages that pervaded the Unix ecosystem at the time. Thanks for that!