aboutsummaryrefslogtreecommitdiff
path: root/libcommon
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-03-08 10:57:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-03-08 10:57:32 +0200
commitadfa9c5ffccdd4e5db8c545d9106c0eb1d7bdcb8 (patch)
treed1dfc44eadd5e693f77b24d2887754359ea439ce /libcommon
parent382d0972301fb575f36eb2e5d442d735d7da3da4 (diff)
Print usage/version information to STDOUT instead of STDERR
Diffstat (limited to 'libcommon')
-rw-r--r--libcommon/common/common.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcommon/common/common.cxx b/libcommon/common/common.cxx
index 10c8ba2..a786fb5 100644
--- a/libcommon/common/common.cxx
+++ b/libcommon/common/common.cxx
@@ -61,17 +61,17 @@ create_database (int& argc,
{
if (argc > 1 && argv[1] == string ("--help"))
{
- cerr << "Usage: " << argv[0] << " [options]" << endl
+ cout << "Usage: " << argv[0] << " [options]" << endl
<< "Options:" << endl;
#if defined(DATABASE_MYSQL)
- mysql::database::print_usage (cerr);
+ mysql::database::print_usage (cout);
#elif defined(DATABASE_SQLITE)
- sqlite::database::print_usage (cerr);
+ sqlite::database::print_usage (cout);
#elif defined(DATABASE_PGSQL)
- pgsql::database::print_usage (cerr);
+ pgsql::database::print_usage (cout);
#elif defined(DATABASE_ORAClE)
- oracle::database::print_usage (cerr);
+ oracle::database::print_usage (cout);
#endif
exit (0);