diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-23 11:58:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-23 11:58:19 +0200 |
commit | ccd0499c10b1ebf075bc251c4827ab79a6975165 (patch) | |
tree | 853c21b34687e4a14a3ab2b29a603819d4ffaca2 /cli/header.cxx | |
parent | d31a0fea0b5ea2a914b15831772ac2d5b0c93824 (diff) | |
download | cli-ccd0499c10b1ebf075bc251c4827ab79a6975165.tar.gz cli-ccd0499c10b1ebf075bc251c4827ab79a6975165.tar.xz cli-ccd0499c10b1ebf075bc251c4827ab79a6975165.zip |
Change print_short_usage() to print_usage()
Diffstat (limited to 'cli/header.cxx')
-rw-r--r-- | cli/header.cxx | 26 |
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; |