summaryrefslogtreecommitdiff
path: root/cli/header.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/header.cxx')
-rw-r--r--cli/header.cxx26
1 files changed, 10 insertions, 16 deletions
diff --git a/cli/header.cxx b/cli/header.cxx
index 76e2626..35097af 100644
--- a/cli/header.cxx
+++ b/cli/header.cxx
@@ -192,15 +192,12 @@ namespace
os << "// Print usage information." << endl
<< "//" << endl;
- if (usage != ut_both)
- os << "static void" << endl
- << "print_usage (" << options.ostream_type () << "&);"
- << endl;
- else
+ os << "static void" << endl
+ << "print_usage (" << options.ostream_type () << "&);"
+ << endl;
+
+ if (usage == ut_both)
os << "static void" << endl
- << "print_short_usage (" << options.ostream_type () << "&);"
- << endl
- << "static void" << endl
<< "print_long_usage (" << options.ostream_type () << "&);"
<< endl;
}
@@ -341,15 +338,12 @@ generate_header (context& ctx)
string const& ost (ctx.options.ostream_type ());
- if (ctx.usage != ut_both)
- os << "void" << endl
- << n << "usage (" << ost << "&);"
- << endl;
- else
+ os << "void" << endl
+ << n << "usage (" << ost << "&);"
+ << endl;
+
+ if (ctx.usage == ut_both)
os << "void" << endl
- << n << "short_usage (" << ost << "&);"
- << endl
- << "void" << endl
<< n << "long_usage (" << ost << "&);"
<< endl;