diff options
Diffstat (limited to 'cli/context.hxx')
-rw-r--r-- | cli/context.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/context.hxx b/cli/context.hxx index 1f2facb..194c008 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -20,6 +20,8 @@ using std::endl; +class generation_failed {}; + class context { public: @@ -36,6 +38,8 @@ public: semantics::cli_unit& unit; options_type const& options; + bool usage; + string const& inl; string const& opt_prefix; string const& opt_sep; @@ -59,6 +63,16 @@ public: string escape (string const&) const; + // Format the documentation string. + // + enum output_type + { + ot_plain + }; + + static string + format (string const&, output_type); + public: static string const& ename (semantics::nameable& n) |