From b8b194ea5fa6ba7a3aac7ff212eb62ccfb942dbf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 24 Nov 2015 14:30:02 +0200 Subject: Implement --class-doc option --- cli/context.hxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'cli/context.hxx') diff --git a/cli/context.hxx b/cli/context.hxx index 460287c..f16f8c2 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -30,6 +30,14 @@ enum usage ut_both }; +enum class_doc +{ + cd_default, + cd_exclude, + cd_short, + cd_long +}; + class context { public: @@ -38,6 +46,7 @@ public: typedef ::options options_type; typedef ::usage usage_type; + typedef ::class_doc class_doc_type; private: struct data; @@ -153,6 +162,14 @@ public: ns_close (const string& name, bool last = true); public: + class_doc_type + class_doc (semantics::class_&); + +public: + string + first_sentence (string const&); + +public: context (std::ostream&, semantics::cli_unit&, options_type const&); context (context&); -- cgit v1.1