summaryrefslogtreecommitdiff
path: root/cli/header.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-23 11:58:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-23 11:58:19 +0200
commitccd0499c10b1ebf075bc251c4827ab79a6975165 (patch)
tree853c21b34687e4a14a3ab2b29a603819d4ffaca2 /cli/header.cxx
parentd31a0fea0b5ea2a914b15831772ac2d5b0c93824 (diff)
Change print_short_usage() to print_usage()
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;