http://stxxl.sourceforge.net
<tb@panthema.net>
http://www.boost.org/LICENSE_1_0.txt
#include <stxxl/cmdline>
int main(int argc, char* argv[])
{
stxxl::cmdline_parser cp;
cp.set_description("This may some day be a useful program, which solves "
"many serious problems of the real world and achives "
"global peace.");
cp.set_author("Timo Bingmann <tb@panthema.net>");
unsigned int rounds = 0;
cp.add_uint('r', "rounds", "N", "Run N rounds of the experiment.", rounds);
stxxl::uint64 a_size = 0;
cp.add_bytes('s', "size", "Number of bytes to process.", a_size);
std::string a_filename;
cp.add_param_string("filename", "A filename to process", a_filename);
if (!cp.process(argc, argv))
return -1;
std::cout << "Command line parsed okay." << std::endl;
cp.print_result();
}