summaryrefslogtreecommitdiff
path: root/cli/header.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-08 15:35:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-08 15:35:19 +0200
commit369470005607b9501a769be0ae2a4c79c90bad84 (patch)
tree459030d6b0ca4f1799d0313a5e63fc24038cd34d /cli/header.cxx
parent907b5fed58d53bbb5e25c590df97f01a0ac93733 (diff)
Implement usage generation
Also migrate the CLI compiler usage handling to the auto-generated version.
Diffstat (limited to 'cli/header.cxx')
-rw-r--r--cli/header.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/cli/header.cxx b/cli/header.cxx
index 9662d3e..b06c2bf 100644
--- a/cli/header.cxx
+++ b/cli/header.cxx
@@ -100,11 +100,21 @@ namespace
//
os << "// Option accessors." << endl
<< "//" << endl
- << "public:" << endl
<< endl;
names (c, names_option_);
+ // usage
+ //
+ if (usage)
+ {
+ os << "// Print usage information." << endl
+ << "//" << endl
+ << "static void" << endl
+ << "print_usage (::std::ostream&);"
+ << endl;
+ }
+
// _parse()
//
os << "private:" << endl