db_bridge/main.cpp
changeset 16 2b4ef74a16aa
parent 15 5a0ca1f9a2f1
child 17 b3731a25b9ec
--- 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);