diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-08 10:57:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-08 10:57:32 +0200 |
commit | b93bf14256c44ce389617b8d00aa94d828ce5a2f (patch) | |
tree | 4b61074e1efe6822fb08006008026895928d64cf | |
parent | 19131a419b35e409e6b65fc47ff31f7742ff54f3 (diff) |
Print usage/version information to STDOUT instead of STDERR
-rw-r--r-- | odb/odb.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
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; } |