summaryrefslogtreecommitdiff
path: root/cli/source.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-15 11:00:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-15 11:00:52 +0200
commite2605ba3c9ca35524b0c86e74ffa37bee548aef3 (patch)
tree5ff3f5145fa9731895e2bf470efb7c94585331a8 /cli/source.cxx
parent5473563e9af0abbc81a3cfd7079c34fbc75dfdb4 (diff)
Add support for specifying output stream type (--stream-type)
Diffstat (limited to 'cli/source.cxx')
-rw-r--r--cli/source.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/source.cxx b/cli/source.cxx
index 883e49d..7fb1391 100644
--- a/cli/source.cxx
+++ b/cli/source.cxx
@@ -690,7 +690,8 @@ namespace
// If len is 0 then it means we have no options to print.
//
os << "void " << name << "::" << endl
- << "print_usage (::std::ostream&" << (len != 0 || b ? " os)" : ")")
+ << "print_usage (" << options.ostream_type () << "&" <<
+ (len != 0 || b ? " os)" : ")")
<< "{";
// Call our bases.