#include namespace bpo=boost::program_options; int main(int argc,char ** argv) { int i; bpo::options_description command_line("Command line options"); command_line.add_options()("int,i",bpo::value(&i)); bpo::variables_map vmap; bpo::store(bpo::parse_command_line(argc,argv,command_line),vmap); return 0; }