yep, it's some kind of an advertisement, but for an open source project.
I made some experience with parsing command line options when working on
an open source traffic simulation named SUMO (http://sumo.dlr.de) and
decided to re-code the options library. It works similar to Python's
argparse library - the options are defined first, then you may retrieve
the values type-aware.
You may find more information on my blog pages:
The library itself is hosted on github:
- cpp-version: https://github.com/dkrajzew/optionslib_cpp
- java-version: https://github.com/dkrajzew/optionslib_java