Fixed a regression bug that --datadir was broken

fixed #3191
This commit is contained in:
SoftFever 2023-12-27 20:13:33 +08:00
parent 7ab2fabe6a
commit bab1a79511

View file

@ -5355,7 +5355,7 @@ bool CLI::setup(int argc, char **argv)
for (const t_optiondef_map::value_type &optdef : *options) for (const t_optiondef_map::value_type &optdef : *options)
m_config.option(optdef.first, true); 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. //FIXME Validating at this stage most likely does not make sense, as the config is not fully initialized yet.
if (!validity.empty()) { if (!validity.empty()) {