summaryrefslogtreecommitdiffstats
path: root/src/help_text.cc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/help_text.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/help_text.cc b/src/help_text.cc
index a409979..a056ed1 100644
--- a/src/help_text.cc
+++ b/src/help_text.cc
@@ -96,10 +96,26 @@ help_text::with_opposites(
return *this;
}
+help_text&
+help_text::with_prql_path(
+ const std::initializer_list<const char*>& prql) noexcept
+{
+ this->ht_prql_path = prql;
+ return *this;
+}
+
+std::multimap<std::string, help_text*>&
+help_text::tag_map()
+{
+ static std::multimap<std::string, help_text*> retval;
+
+ return retval;
+}
+
void
help_text::index_tags()
{
for (const auto& tag : this->ht_tags) {
- TAGGED.insert(std::make_pair(tag, this));
+ tag_map().insert(std::make_pair(tag, this));
}
}