Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
KEP-629: Ignore unrecognized options
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelsavannah committed Sep 18, 2018
1 parent 82fcc50 commit d9fc3b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions options/simple_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ simple_options::handle_config_file_options()
{
const auto& json_val = json[name];

if (! this->options_root.find_nothrow(name.c_str(), false))
{
std::cerr << "Warning: ignoring unknown config file option '" << name << "'\n";
continue;
}

boost::program_options::basic_option<char> opt;
opt.string_key = name;

Expand Down

0 comments on commit d9fc3b9

Please sign in to comment.