| 220 | } |
| 221 | |
| 222 | void 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 | |
| 243 | namespace |
| 244 | { |
nothing calls this directly
no test coverage detected