24 namespace po = boost::program_options;
40 po::variables_map *vm ) {
42 po::options_description desc (
"Command-line/configuration file options" );
45 "Indices of sentences to translate" )
48 "Server Host machine " )
56 }
catch ( std::exception& e ) {
57 cerr <<
"error: " << e.what() <<
"\n";
58 exit ( EXIT_FAILURE );
60 cerr <<
"Exception of unknown type!\n";
61 exit ( EXIT_FAILURE );
63 LINFO (
"Configuration loaded" );
void parseOptionsGeneric(bpo::options_description &desc, bpo::variables_map *vm, int argc, const char *argv[])
void init_param_options(int argc, const char *argv[], po::variables_map *vm)
Function to initialize boost program_options module with command-line and config file options...
const std::string kHifstHost
const std::string kTargetStore
const std::string kHifstPort
std::string const kRangeExtended
List of constants to be used both across program options and class runners.
const std::string kSourceLoad