bool HelpCommand::Apply(CommandExecutionContext WXUNUSED(context)) { wxString commandName = GetString(wxT("CommandName")); CommandType *type = CommandDirectory::Get()->LookUp(commandName); if (type == NULL) { Error(wxString::Format(wxT("Command '%s' does not exist!"), commandName.c_str())); return false; } Status(type->Describe()); return true; }