support datadir parameter

#325
This commit is contained in:
SoftFever committed 2023-03-04 15:05:38 +08:00
1 parent 29600dd67e
commit 771ef9fd80
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -2421,7 +2421,7 @@ bool CLI::setup(int argc, char **argv)
for (const t_optiondef_map::value_type &optdef : *options)
m_config.option(optdef.first, true);
//set_data_dir(m_config.opt_string("datadir"));
set_data_dir(m_config.opt_string("datadir"));
//FIXME Validating at this stage most likely does not make sense, as the config is not fully initialized yet.
if (!validity.empty()) {