MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / getCommandDescription

Method getCommandDescription

source/modes/ConsoleInterface.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228boost::optional<const ConsoleInterface::String_t&> ConsoleInterface::getCommandDescription(const String_t& command)
229{
230 auto it = mCommandMap.find(command);
231 if(it != mCommandMap.end())
232 {
233 return boost::optional<const String_t&>(it->second->getDescription());
234 }
235 else
236 {
237 return boost::none;
238 }
239}
240
241Command::Result ConsoleInterface::helpCommand(const Command::ArgumentList_t& args, ConsoleInterface& console, AbstractModeManager&)
242{

Callers 1

helpCommandMethod · 0.80

Calls 1

getDescriptionMethod · 0.45

Tested by

no test coverage detected