| 267 | } |
| 268 | |
| 269 | bool has_help() const { |
| 270 | for (const auto command : _commands) { |
| 271 | if (command->name == "h" && command->alternative == "--help") { |
| 272 | return true; |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | return false; |
| 277 | } |
| 278 | |
| 279 | void enable_help() { |
| 280 | set_callback("h", "help", std::function<bool(CallbackArgs&)>([this](CallbackArgs& args){ |
nothing calls this directly
no outgoing calls
no test coverage detected