summaryrefslogtreecommitdiff
path: root/cli/man.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-23 12:22:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-23 12:22:19 +0200
commit7e9cb673ccfc77c5871292aa5491fc2c2dc2a663 (patch)
treeccb92fe421c895525be3a5c82429db8ea984775a /cli/man.cxx
parentccd0499c10b1ebf075bc251c4827ab79a6975165 (diff)
Add --include-base-last option
Diffstat (limited to 'cli/man.cxx')
-rw-r--r--cli/man.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/man.cxx b/cli/man.cxx
index 70a5a4a..2d5cce7 100644
--- a/cli/man.cxx
+++ b/cli/man.cxx
@@ -185,10 +185,13 @@ namespace
virtual void
traverse (type& c)
{
- if (!options.exclude_base ())
+ if (!options.exclude_base () && !options.include_base_last ())
inherits (c, inherits_base_);
names (c, names_option_);
+
+ if (!options.exclude_base () && options.include_base_last ())
+ inherits (c, inherits_base_);
}
private: