CLIOptions: Code to handle command line interface options

2018-02-11

I extracted some code out of my dumping ground for assorted snippets (a.k.a. misc_public) and put it in its own repository: CLIOptions.

It’s a tiny header-only C++ library to handle options (parameters, arguments, …) which are given to programs on the command line.

The capabilities are described in the comments in CLIOptions.h file itself, a short example.cpp is also in the repo — and even a CMake script has been written (as so often, not 100% generic, some settings/paths in it are tailored to my filesystem and workflows; adjust as needed).

I don’t have any grand plans for it, but it does what it should do and I’m already using it in a couple of places, so I consider it useful enough to bring it up into the light. 🙂

Leave a comment

Your email address will not be published.