The new glibmm 2.5.1 now has a mature version of the command-line-argument-parsing API, wrapping the GOption API in glib. I've been a bit rushed, so now would be be a good time to check it. Or regret it later when you try to use it. Here is an example.