aboutsummaryrefslogtreecommitdiff
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
commit27245519b1a659eb849a31714df0090dc58bb87a (patch)
tree2ebc0c3ec74b1695a946ca36b864729a2bb3f15b
parent171385079d50b77fcdb219e1cbae1ab79fa000f5 (diff)
Print usage/version information to STDOUT instead of STDERR
-rw-r--r--boost/database.hxx12
-rw-r--r--c++11/database.hxx12
-rw-r--r--composite/database.hxx12
-rw-r--r--container/database.hxx12
-rw-r--r--hello/database.hxx12
-rw-r--r--inheritance/database.hxx12
-rw-r--r--inverse/database.hxx12
-rw-r--r--mapping/database.hxx12
-rw-r--r--optimistic/database.hxx12
-rw-r--r--qt/database.hxx12
-rw-r--r--query/database.hxx12
-rw-r--r--relationship/database.hxx12
-rw-r--r--schema/custom/database.hxx12
-rw-r--r--schema/embedded/database.hxx12
-rw-r--r--template/database.hxx12
-rw-r--r--view/database.hxx12
16 files changed, 96 insertions, 96 deletions
diff --git a/boost/database.hxx b/boost/database.hxx
index 1052270..8fb61b9 100644
--- a/boost/database.hxx
+++ b/boost/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);
diff --git a/c++11/database.hxx b/c++11/database.hxx
index b362e8e..2e9eb5d 100644
--- a/c++11/database.hxx
+++ b/c++11/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);
diff --git a/composite/database.hxx b/composite/database.hxx
index 3f8948d..36860df 100644
--- a/composite/database.hxx
+++ b/composite/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);
diff --git a/container/database.hxx b/container/database.hxx
index 53f1548..226f67b 100644
--- a/container/database.hxx
+++ b/container/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);
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);
diff --git a/inheritance/database.hxx b/inheritance/database.hxx
index 74f686b..af048c4 100644
--- a/inheritance/database.hxx
+++ b/inheritance/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);
diff --git a/inverse/database.hxx b/inverse/database.hxx
index 5a6d590..7ceaedf 100644
--- a/inverse/database.hxx
+++ b/inverse/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);
diff --git a/mapping/database.hxx b/mapping/database.hxx
index aadaa62..5759e10 100644
--- a/mapping/database.hxx
+++ b/mapping/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);
diff --git a/optimistic/database.hxx b/optimistic/database.hxx
index 8ed1447..6e110b9 100644
--- a/optimistic/database.hxx
+++ b/optimistic/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);
diff --git a/qt/database.hxx b/qt/database.hxx
index be62c70..e0004aa 100644
--- a/qt/database.hxx
+++ b/qt/database.hxx
@@ -38,19 +38,19 @@ createDatabase (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);
diff --git a/query/database.hxx b/query/database.hxx
index 713e233..b1cb086 100644
--- a/query/database.hxx
+++ b/query/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);
diff --git a/relationship/database.hxx b/relationship/database.hxx
index ace574f..f782869 100644
--- a/relationship/database.hxx
+++ b/relationship/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);
diff --git a/schema/custom/database.hxx b/schema/custom/database.hxx
index abd0aae..39febe8 100644
--- a/schema/custom/database.hxx
+++ b/schema/custom/database.hxx
@@ -35,19 +35,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);
diff --git a/schema/embedded/database.hxx b/schema/embedded/database.hxx
index e5c37fc..b2c81ea 100644
--- a/schema/embedded/database.hxx
+++ b/schema/embedded/database.hxx
@@ -35,19 +35,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);
diff --git a/template/database.hxx b/template/database.hxx
index 3d2ed75..3eb2c61 100644
--- a/template/database.hxx
+++ b/template/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);
diff --git a/view/database.hxx b/view/database.hxx
index 3378245..9bfe987 100644
--- a/view/database.hxx
+++ b/view/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);