summaryrefslogtreecommitdiff
path: root/cli/context.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/context.hxx')
-rw-r--r--cli/context.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/cli/context.hxx b/cli/context.hxx
index 194c008..f6d53c3 100644
--- a/cli/context.hxx
+++ b/cli/context.hxx
@@ -63,14 +63,23 @@ public:
string
escape (string const&) const;
- // Format the documentation string.
+ // Translate and format the documentation string. Translate converts
+ // the <arg>-style constructs to \i{arg}. Format converts the string
+ // to the output format.
//
enum output_type
{
- ot_plain
+ ot_plain,
+ ot_html
};
static string
+ translate_arg (string const&, std::set<string>&);
+
+ static string
+ translate (string const&, std::set<string> const&);
+
+ static string
format (string const&, output_type);
public: