Either Python somehow, or perhaps Boost's program options: http://www.boost.org/doc/libs/1_53_0/doc/html/program_options.html