Ticket #2613: test.cpp

File test.cpp, 514 bytes (added by anonymous, 14 years ago)

Run to see the broken help output.

Line 
1#include <iostream>
2#include <string>
3#include <boost/program_options.hpp>
4
5int main(int argc, char * argv[])
6{
7 using namespace std;
8 using namespace boost::program_options;
9 options_description cmdline_options("Supported options");
10 cmdline_options.add_options()
11 ("help", "this is a sufficiently long text to require word-wrapping")
12 ("prefix", value<string>()->default_value("/h/proj/tmp/dispatch"), "root path of the dispatch installation")
13 ;
14 cerr << cmdline_options << endl;
15 return 0;
16}