+ po::options_description desc("Allowed options");
+ desc.add_options()
+ ("help", "produce help message")
+ ("duration", po::value<int>(),
+ "number of seconds for server to exist")
+ ;
+
+ po::variables_map vm;
+ po::store(po::parse_command_line(argc, argv, desc), vm);
+ po::notify(vm);
+
+ if (vm.count("help")) {
+ std::cout << desc << "\n";
+ return 1;
+ }
+