Functions
fhicl-config_t.cc File Reference
#include "cetlib/filepath_maker.h"
#include "fhiclcpp/ParameterSet.h"
#include <cstdlib>
#include <iostream>
#include <string>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 11 of file fhicl-config_t.cc.

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 }
std::string string
Definition: nybbler.cc:12
unique_ptr< InputSource > make(ParameterSet const &conf, InputSourceDescription &desc)
QTextStream & endl(QTextStream &s)