23#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_PROGRAM_MANAGER_IMPL_
24#error "This file should not be included directly! Use ElementsKernel/ProgramManager.h instead"
30#include <boost/filesystem/operations.hpp>
31#include <boost/filesystem/path.hpp>
45 const boost::program_options::basic_parsed_options<charT>& cmd_parsed_options) {
47 for (
const auto& o : cmd_parsed_options.options) {
48 if (o.string_key ==
"config-file") {
49 if (o.value.size() != 1) {
50 std::cerr <<
"Wrong usage of the --config-file option" <<
std::endl;
53 auto conf_file = Path::Item{o.value[0]};
54 if (not boost::filesystem::exists(conf_file)) {
55 std::cerr <<
"The " << conf_file <<
" configuration file doesn't exist!" <<
std::endl;
define a list of standard exit codes for executables
provide functions to retrieve resources pointed by environment variables
void checkCommandLineOptions(const boost::program_options::basic_parsed_options< charT > &cmd_line_options)
check the explicit command line arguments. For the moment, it only checks if the configuration file b...
@ CONFIG
configuration error
@ USAGE
command line usage error