Ticket #11905: minimal_example.cpp
File minimal_example.cpp, 359 bytes (added by , 7 years ago) |
---|
Line | |
---|---|
1 | #include <boost/program_options.hpp> |
2 | namespace bpo=boost::program_options; |
3 | |
4 | int main(int argc,char ** argv) |
5 | { |
6 | int i; |
7 | bpo::options_description command_line("Command line options"); |
8 | command_line.add_options()("int,i",bpo::value<int>(&i)); |
9 | bpo::variables_map vmap; |
10 | bpo::store(bpo::parse_command_line(argc,argv,command_line),vmap); |
11 | return 0; |
12 | } |
13 |