We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf54851 commit d503d48Copy full SHA for d503d48
src/Config.cpp
@@ -60,11 +60,20 @@ void Config::readFromFile(const string& file) {
60
YAML::Node n = YAML::LoadFile(file);
61
62
// Keys are always strings
63
+ bool given = false;
64
+ string CTL = "column_table_limit";
65
+ string CL = "column_limit";
66
for (auto kv : n) {
67
auto key = kv.first.as<string>();
68
if (node_[key]) {
69
node_[key] = kv.second;
70
}
71
+ if (key == CTL) {
72
+ given = true;
73
+ }
74
75
+ if (!given) {
76
+ node_[CTL] = node_[CL];
77
78
79
0 commit comments