--- a/db_bridge/main.cpp
+++ b/db_bridge/main.cpp
@@ -13,9 +13,13 @@
void usage (std::string progname)
{
- std::cout << "Benutzung: " << progname << " [-r <remotehost>] [-u <user>] [-p <password>] [-h] DATABASE\n" << std::
- endl;
- std::cout << "Berichten Sie Fehler oder Anregungen an mbroeker@largo.homelinux.org" << std::endl;
+ std::cout << "Benutzung: " << progname << " [-h] [-r <remotehost>] [-u <user>] [-p <password>] DATABASE\n";
+ std::cout << "\t\t-r <remotehost>\t\tVerbindung zu Fremdrechner <remotehost>\n";
+ std::cout << "\t\t-u <user>\t\tAnmeldung als <user>\n";
+ std::cout << "\t\t-p <password>\t\tAnmelden mit dem Passwort <password>\n";
+ std::cout << "\n";
+ std::cout << "\t\tDATABASE\t\tVerbindung zur Datenbank DATABASE herstellen\n";
+ std::cout << "\nBerichten Sie Fehler oder Anregungen an mbroeker@largo.homelinux.org" << std::endl;
exit (0);
}
@@ -31,7 +35,7 @@
std::string host, user, pass, database;
std::string sql_statement;
- while ((c = getopt (argc, argv, "r:u:p:d:h")) >= 0) {
+ while ((c = getopt (argc, argv, "r:u:p:h")) >= 0) {
switch (c) {
case 'r':
host = optarg;
@@ -64,7 +68,6 @@
}
for (;;) {
- // std::getline(std::cin, sql_statement);
std::cout << "DB_BRIDGE # ";
std::getline (std::cin, sql_statement);