#include "cetlib/filepath_maker.h"
#include "cetlib/ostream_handle.h"
#include "cetlib/parsed_program_options.h"
#include "cetlib_except/demangle.h"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/detail/print_mode.h"
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <variant>
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 53 of file fhicl-dump.cc.
55 auto const opts_or_help = process_arguments(argc,
argv);
56 if (std::holds_alternative<Help>(opts_or_help)) {
57 std::cout << std::get<Help>(opts_or_help).
msg;
61 auto const&
opts = std::get<Options>(opts_or_help);
70 os <<
"# Produced from '" <<
argv[0] <<
"' using:\n" 71 <<
"# Input : " <<
opts.input_filename <<
'\n' 73 << cet::demangle_symbol(
typeid(decltype(*
opts.policy)).name()) <<
'\n' 74 <<
"# Path : \"" <<
opts.lookup_path <<
"\"\n\n" 75 << pset.to_indented_string(0,
opts.mode);
ostream_handle select_stream(std::string const &filename, std::ostream &default_os)
void msg(const char *fmt,...)
static ParameterSet make(intermediate_table const &tbl)