MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / defineOptions

Method defineOptions

src/Daemon/BaseDaemon.cpp:507–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507void BaseDaemon::defineOptions(Poco::Util::OptionSet & new_options)
508{
509 new_options.addOption(
510 Poco::Util::Option("config-file", "C", "load configuration from a given file")
511 .required(false)
512 .repeatable(false)
513 .argument("<file>")
514 .binding("config-file"));
515
516 new_options.addOption(
517 Poco::Util::Option("log-file", "L", "use given log file")
518 .required(false)
519 .repeatable(false)
520 .argument("<file>")
521 .binding("logger.log"));
522
523 new_options.addOption(
524 Poco::Util::Option("errorlog-file", "E", "use given log file for errors only")
525 .required(false)
526 .repeatable(false)
527 .argument("<file>")
528 .binding("logger.errorlog"));
529
530 new_options.addOption(
531 Poco::Util::Option("pid-file", "P", "use given pidfile")
532 .required(false)
533 .repeatable(false)
534 .argument("<file>")
535 .binding("pid"));
536
537 Poco::Util::ServerApplication::defineOptions(new_options);
538}
539
540void BaseDaemon::onTerminateRequestSignal()
541{

Callers

nothing calls this directly

Calls 4

addOptionMethod · 0.80
repeatableMethod · 0.80
requiredMethod · 0.80
OptionClass · 0.50

Tested by

no test coverage detected