MCPcopy Create free account
hub / github.com/ROCm/rocPRIM / has_help

Method has_help

benchmark/cmdparser.hpp:269–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected