src/LearnIt/ProgramOptionsUtils.cpp
// Validates two command-line arguments that cannot be specified together

Validates two command-line arguments that cannot be specified together
Validates two command - line arguments that cannot be specified together
void validate_exclusive_cmd_line_args(const boost::program_options::options_description & desc,
								  	  const boost::program_options::variables_map & var_map,
									  const std::string & param_name_1, const std::string & param_name_2) {
	if (var_map.count(param_name_1) >= 1 && var_map.count(param_name_2) >= 1) {
		std::cerr << "Command-line arguments '" << param_name_1 << "' and '" << param_name_2 << " are mutually exclusive." << std::endl; 
		write_help_msg(desc);
	}
}
void validate_exclusive_cmd_line_args ( const boost :: program_options :: options_description & desc , const boost :: program_options :: variables_map & var_map , const std :: string & param_name_1 , const std :: string & param_name_2 ) { if ( var_map . count ( param_name_1 ) >= 1 && var_map . count ( param_name_2 ) >= 1 ) { std :: cerr << " " << param_name_1 << " " << param_name_2 << " " << std :: endl ; write_help_msg ( desc ) ; } }
Validates two command-line arguments that cannot be specified together
Validates two command - line arguments that cannot be specified together