Ticket #3603: any_warning.cpp
File any_warning.cpp, 378 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | #include <iostream> |
2 | using namespace std; |
3 | |
4 | #include <boost/program_options.hpp> |
5 | using namespace boost::program_options; |
6 | |
7 | int main(int argc, char** argv) { |
8 | |
9 | int x = 0; |
10 | options_description desc(""); |
11 | desc.add_options()("x,x", value<int>(&x)->default_value(2), "x"); |
12 | |
13 | variables_map vm; |
14 | store(parse_command_line(argc, argv, desc), vm); |
15 | notify(vm); |
16 | return 0; |
17 | } |