summaryrefslogtreecommitdiff
path: root/cli/cli.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-03-08 11:26:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-03-08 11:26:47 +0200
commit83c0210d84179f3fd00774a757bd9e7dc8a42d32 (patch)
tree782a7dbd60dd024018d2e8e7408d3f2529d548ed /cli/cli.cxx
parent490cd02a71802c699fc339ec279ee7e6010be0d9 (diff)
Print usage/version information to STDOUT instead of STDERR
Diffstat (limited to 'cli/cli.cxx')
-rw-r--r--cli/cli.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/cli/cli.cxx b/cli/cli.cxx
index df7fd97..b8314e6 100644
--- a/cli/cli.cxx
+++ b/cli/cli.cxx
@@ -31,10 +31,12 @@ main (int argc, char* argv[])
//
if (ops.version ())
{
- e << "CodeSynthesis CLI command line interface compiler 1.1.0" << endl
+ ostream& o (cout);
+
+ o << "CodeSynthesis CLI command line interface compiler 1.1.0" << endl
<< "Copyright (c) 2009-2011 Code Synthesis Tools CC" << endl;
- e << "This is free software; see the source for copying conditions. "
+ o << "This is free software; see the source for copying conditions. "
<< "There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS "
<< "FOR A PARTICULAR PURPOSE." << endl;
@@ -45,10 +47,12 @@ main (int argc, char* argv[])
//
if (ops.help ())
{
- e << "Usage: " << argv[0] << " [options] file" << endl
+ ostream& o (cout);
+
+ o << "Usage: " << argv[0] << " [options] file" << endl
<< "Options:" << endl;
- options::print_usage (e);
+ options::print_usage (o);
return 0;
}