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

Method enable_help

benchmark/cmdparser.hpp:279–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 void enable_help() {
280 set_callback("h", "help", std::function<bool(CallbackArgs&)>([this](CallbackArgs& args){
281 args.output << this->usage();
282 /*exit(0);*/
283 return false;
284 }), "", true);
285 }
286
287 void disable_help() {
288 for (auto command = _commands.begin(); command != _commands.end(); ++command) {

Callers

nothing calls this directly

Calls 1

usageMethod · 0.95

Tested by

no test coverage detected