diff options
Diffstat (limited to 'cli/header.cxx')
-rw-r--r-- | cli/header.cxx | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/cli/header.cxx b/cli/header.cxx index 26c23b8..ddf0895 100644 --- a/cli/header.cxx +++ b/cli/header.cxx @@ -179,13 +179,22 @@ namespace // Usage. // - if (usage) + if (usage != ut_none) { os << "// Print usage information." << endl - << "//" << endl - << "static void" << endl - << "print_usage (" << options.ostream_type () << "&);" - << endl; + << "//" << endl; + + if (usage != ut_both) + os << "static void" << endl + << "print_usage (" << options.ostream_type () << "&);" + << endl; + else + os << "static void" << endl + << "print_short_usage (" << options.ostream_type () << "&);" + << endl + << "static void" << endl + << "print_long_usage (" << options.ostream_type () << "&);" + << endl; } // Description. |