aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/fmt.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/fmt.hh')
-rw-r--r--src/libutil/fmt.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/fmt.hh b/src/libutil/fmt.hh
index 75354a07c..84a3e3e11 100644
--- a/src/libutil/fmt.hh
+++ b/src/libutil/fmt.hh
@@ -141,6 +141,10 @@ public:
: HintFmt("%s", Uncolored(literal))
{ }
+ static HintFmt fromFormatString(const std::string & format) {
+ return HintFmt(boost::format(format));
+ }
+
/**
* Interpolate the given arguments into the format string.
*/