From 27245519b1a659eb849a31714df0090dc58bb87a 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 --- hello/database.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'hello') diff --git a/hello/database.hxx b/hello/database.hxx index 1bf7b4c..2b05442 100644 --- a/hello/database.hxx +++ b/hello/database.hxx @@ -38,19 +38,19 @@ create_database (int& argc, char* argv[]) 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) - odb::mysql::database::print_usage (cerr); + odb::mysql::database::print_usage (cout); #elif defined(DATABASE_SQLITE) - odb::sqlite::database::print_usage (cerr); + odb::sqlite::database::print_usage (cout); #elif defined(DATABASE_PGSQL) - odb::pgsql::database::print_usage (cerr); + odb::pgsql::database::print_usage (cout); #elif defined(DATABASE_ORACLE) - odb::oracle::database::print_usage (cerr); + odb::oracle::database::print_usage (cout); #elif defined(DATABASE_MSSQL) - odb::mssql::database::print_usage (cerr); + odb::mssql::database::print_usage (cout); #endif exit (0); -- cgit v1.1