Skip to content

Instantly share code, notes, and snippets.

View eyalroz's full-sized avatar

Eyal Rozenberg eyalroz

View GitHub Profile
static void add_unrecognized_options(TestConfiguration& config, const std::vector<string>& unrecognized_options)
{
// TODO: make sure all unrecognized options are of the form --option=value
// I'm sure the following can be made more elegant...
enum { OptionName, OptionValue } now_expecting = OptionName;
std::string option_name;
for(auto it = unrecognized_options.begin(); it != unrecognized_options.end(); it++) {
std::string option_value;