Skip to content

Commit d503d48

Browse files
committed
correct default config
1 parent cf54851 commit d503d48

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Config.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,20 @@ void Config::readFromFile(const string& file) {
6060
YAML::Node n = YAML::LoadFile(file);
6161

6262
// Keys are always strings
63+
bool given = false;
64+
string CTL = "column_table_limit";
65+
string CL = "column_limit";
6366
for (auto kv : n) {
6467
auto key = kv.first.as<string>();
6568
if (node_[key]) {
6669
node_[key] = kv.second;
6770
}
71+
if (key == CTL) {
72+
given = true;
73+
}
74+
}
75+
if (!given) {
76+
node_[CTL] = node_[CL];
6877
}
6978
}
7079

0 commit comments

Comments
 (0)