MCPcopy Create free account
hub / github.com/ByConity/ByConity / run

Method run

programs/server/Server.cpp:454–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454int Server::run()
455{
456 if (config().hasOption("help"))
457 {
458 Poco::Util::HelpFormatter help_formatter(Server::options());
459 auto header_str = fmt::format("{} [OPTION] [-- [ARG]...]\n"
460 "positional arguments can be used to rewrite config.xml properties, for example, --http_port=8010",
461 commandName());
462 help_formatter.setHeader(header_str);
463 help_formatter.format(std::cout);
464 return 0;
465 }
466 if (config().hasOption("version"))
467 {
468 std::cout << VERSION_NAME << " server version " << VERSION_STRING << VERSION_OFFICIAL << "." << std::endl;
469 return 0;
470 }
471 return Application::run(); // NOLINT
472}
473
474void Server::initialize(Poco::Util::Application & self)
475{

Callers 3

mainEntryStorageToolsFunction · 0.45

Calls 4

configFunction · 0.50
runFunction · 0.50
setHeaderMethod · 0.45
formatMethod · 0.45

Tested by 1