ENH: CLI: set the default pipe to null to remove warning

Change-Id: I9e2cbb3bba02892a6a97a6a3e0bd9b0f729d202a
(cherry picked from commit 1b94c924919c60231e9a87717d0b51204e37dcbc)
This commit is contained in:
lane.wei 2023-04-04 12:22:30 +08:00 committed by Lane.Wei
parent 4d958df4b3
commit 4e5ed34fde
2 changed files with 5 additions and 3 deletions

View file

@ -519,10 +519,12 @@ int CLI::run(int argc, char **argv)
ConfigOptionString* pipe_option = m_config.option<ConfigOptionString>("pipe");
if (pipe_option) {
pipe_name = pipe_option->value;
BOOST_LOG_TRIVIAL(info) << boost::format("Will use pipe %1%")%pipe_name;
if (!pipe_name.empty()) {
BOOST_LOG_TRIVIAL(info) << boost::format("Will use pipe %1%")%pipe_name;
#if defined(__linux__) || defined(__LINUX__)
g_cli_callback_mgr.start(pipe_name);
g_cli_callback_mgr.start(pipe_name);
#endif
}
}
/*for (const std::string& file : m_input_files)