From b93bf14256c44ce389617b8d00aa94d828ce5a2f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Mar 2012 10:57:32 +0200 Subject: Print usage/version information to STDOUT instead of STDERR --- odb/odb.cxx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'odb/odb.cxx') diff --git a/odb/odb.cxx b/odb/odb.cxx index 0a117ad..c0e2388 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -493,13 +493,13 @@ main (int argc, char* argv[]) // if (ops.version ()) { - e << "ODB object-relational mapping (ORM) compiler for C++ " + cout << "ODB object-relational mapping (ORM) compiler for C++ " ODB_COMPILER_VERSION_STR << endl - << "Copyright (c) 2009-2012 Code Synthesis Tools CC" << endl; + << "Copyright (c) 2009-2012 Code Synthesis Tools CC" << endl; - e << "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; + cout << "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; return 0; } @@ -508,11 +508,10 @@ main (int argc, char* argv[]) // if (ops.help ()) { - e << "Usage: " << argv[0] << " [options] file [file ...]" - << endl - << "Options:" << endl; + cout << "Usage: " << argv[0] << " [options] file [file ...]" << endl + << "Options:" << endl; - options::print_usage (e); + options::print_usage (cout); return 0; } -- cgit v1.1