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

Method defineOptions

programs/keeper/Keeper.cpp:222–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void Keeper::defineOptions(Poco::Util::OptionSet & options)
223{
224 options.addOption(
225 Poco::Util::Option("help", "h", "show help and exit")
226 .required(false)
227 .repeatable(false)
228 .binding("help"));
229 options.addOption(
230 Poco::Util::Option("version", "V", "show version and exit")
231 .required(false)
232 .repeatable(false)
233 .binding("version"));
234 options.addOption(
235 Poco::Util::Option("force-recovery", "force-recovery", "Force recovery mode allowing Keeper to overwrite cluster configuration without quorum")
236 .required(false)
237 .repeatable(false)
238 .noArgument()
239 .callback(Poco::Util::OptionCallback<Keeper>(this, &Keeper::handleCustomArguments)));
240 BaseDaemon::defineOptions(options);
241}
242
243namespace
244{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected