Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
getoptions
An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)
Yeah, now that I look at it a bit closer, it is quirky. Not unmanageable, but I think I prefer something like Argparse which generates the parsing code for you using a simpler language.
There are a number of library files that offer a range of arg handling possibilities in different ways, I collated several of them here, but I don't have a favourite.
I like to use https://github.com/ko1nksm/getoptions
Wow thanks! I just found another option, https://github.com/kward/shflags, but yours looks even better.