From adfa9c5ffccdd4e5db8c545d9106c0eb1d7bdcb8 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 --- libcommon/common/common.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libcommon/common') 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); -- cgit v1.1