25 po::options_description
generic(
" Generic options");
26 auto generic_add =
generic.add_options();
27 generic_add(
"help,h",
"display this help and exit");
30 po::options_description config_req(
" Configuration (required)");
31 auto config_req_add = config_req.add_options();
32 config_req_add(
"output,o", po::value<string>(&
fsChanHistosIn)->required()->value_name(
"<protocol://xxxxxx>"),
33 "name or host:port or whatever is needed for output channel (histos/canvases config and data), "
34 "cf http://api.zeromq.org/2-1:zmq-connect");
37 po::options_description config(
" Configuration (optional)");
38 auto config_add = config.add_options();
39 config_add(
"runtime,r", po::value<int64_t>(&
fRunTime)->default_value(90),
40 "duration of test run in seconds ~ x4 entries in test histogram ");
41 config_add(
"pubint,p", po::value<int64_t>(&
fPubInterval)->default_value(5),
42 "publication interval in seconds (accumulate statistics between message emissions)");
45 po::options_description cmdline_options(
"Allowed options");
46 cmdline_options.add(generic).add(config_req).add(config);
49 po::variables_map vars;
50 po::store(po::parse_command_line(argc, argv, cmdline_options), vars);
53 if (vars.count(
"help") != 0u) {
54 std::cout << cmdline_options << std::endl;