This example is documented in Command Line Parser tutorial.
int main(int argc, char* argv[])
{
"many serious problems of the real world and achives "
"global peace.");
unsigned int rounds = 0;
cp.
add_uint(
'r',
"rounds",
"N",
"Run N rounds of the experiment.", rounds);
cp.
add_bytes(
's',
"size",
"Number of bytes to process.", a_size);
std::string a_filename;
return -1;
std::cout << "Command line parsed okay." << std::endl;
}