I'm actually quite surprised at the number of open source repositories using git rev-parse --parseopt for option parsing, even for things that are not Git-related.
I use it in my code because it's a reasonable, portable way to get sensible option parsing in shell scripts in a way that works across shells and OSes. Apparently other people had the same idea.