MCPcopy Create free account
hub / github.com/crawl/crawl / show_specific_helps

Function show_specific_helps

crawl-ref/source/command.cc:521–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521void show_specific_helps(const vector<string> keys)
522{
523 // a fancier version of this might toggle between tabs, but this just
524 // concatenates
525 vector<formatted_string> formatted_lines;
526 size_t i = 0;
527 for (const auto &key : keys)
528 {
529 string help = getHelpString(key);
530 trim_string_right(help);
531 for (const string &line : split_string("\n", help, false, true))
532 formatted_lines.push_back(formatted_string::parse_string(line));
533
534 i++;
535 if (i < keys.size())
536 formatted_lines.emplace_back("");
537 }
538 show_keyhelp_menu(formatted_lines);
539}
540
541void show_specific_help(const string &key)
542{

Callers 3

show_specific_helpFunction · 0.85
process_keyMethod · 0.85
process_commandMethod · 0.85

Calls 6

getHelpStringFunction · 0.85
split_stringFunction · 0.85
parse_stringFunction · 0.85
show_keyhelp_menuFunction · 0.85
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected