diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-24 14:30:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-24 14:30:02 +0200 |
commit | b8b194ea5fa6ba7a3aac7ff212eb62ccfb942dbf (patch) | |
tree | 5d31eafd8e0fcfe497bd8fd022370966f0a26f76 /cli/context.hxx | |
parent | 469605e872aeca50c7556708de5d50d7e7935d83 (diff) |
Implement --class-doc option
Diffstat (limited to 'cli/context.hxx')
-rw-r--r-- | cli/context.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
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&); |