fhicl-config_t.cc
Go to the documentation of this file.
3 
4 #include <cstdlib>
5 #include <iostream>
6 #include <string>
7 
8 using namespace fhicl;
9 
10 int
11 main(int argc, char* argv[])
12 {
13  if (argc != 2) {
14  std::cerr << "ERROR: expect exactly one argument.\n";
15  std::exit(1);
16  }
17 
18  cet::filepath_lookup policy("FHICL_FILE_PATH");
19 
20  std::string cfg_in(argv[1]);
21  auto const pset = ParameterSet::make(cfg_in, policy);
22  std::cout << pset.to_string() << std::endl;
23 
24  return 0;
25 }
int main(int argc, char *argv[])
std::string string
Definition: nybbler.cc:12
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
QTextStream & endl(QTextStream &s)