10 #include "cetlib/filepath_maker.h" 12 #include "boost/filesystem.hpp" 13 #include "boost/program_options.hpp" 19 namespace bpo = boost::program_options;
21 #define ART_RETHROW_DEFAULT 0 26 char const* fhicl_env = getenv(
"FHICL_FILE_PATH");
27 std::string search_path;
28 if (fhicl_env ==
nullptr) {
29 std::cerr <<
"Expected environment variable FHICL_FILE_PATH is " 30 <<
"missing or empty: using \".\"\n";
34 search_path = std::string{fhicl_env};
36 cet::filepath_first_absolute_or_lookup_with_dot lookupPolicy{search_path};
38 bpo::options_description all_desc;
48 boost::filesystem::path(argv[0]).filename().native()});
51 return art::run_art(argc, argv, all_desc, lookupPolicy, std::move(handlers));
int artapp_string_config(std::string const &config_string)
int run_art(int argc, char **argv, bpo::options_description &in_desc, cet::filepath_maker &lookupPolicy, OptionsHandlers &&handlers)
int run_art_string_config(std::string const &config_string)
#define ART_RETHROW_DEFAULT
std::vector< std::unique_ptr< art::OptionsHandler >> OptionsHandlers
int artapp(int argc, char *argv[])