Commit db8d680f authored by Mathieu Giraud's avatar Mathieu Giraud

CLI11_json.cpp: reads config from "config"

see #3837.
parent e0133fae
...@@ -56,7 +56,7 @@ class ConfigJSON : public CLI::Config { ...@@ -56,7 +56,7 @@ class ConfigJSON : public CLI::Config {
std::vector<CLI::ConfigItem> from_config(std::istream &input) const override { std::vector<CLI::ConfigItem> from_config(std::istream &input) const override {
json j; json j;
input >> j; input >> j;
return _from_config(j); return _from_config(j["config"]);
} }
std::vector<CLI::ConfigItem> std::vector<CLI::ConfigItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment