[C++] A functor abuse, but a cool abuse :D


Taken from http://www.boost.org/doc/html/program_options/tutorial.html, here's my “omigod why haven't I thought of this before” moment of the week:

// Declare the supported options.
po::options_description desc("Allowed options");
desc.add_options()
("help", "produce help message")
("compression", po::value(), "set compression level")
;

All I can say is: -_-)=b