Update of /cvsroot/monetdb/MonetDB5/src/tools
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21859

Modified Files:
        monetdb.mx 
Log Message:
Emit help message if a user doesn't provide a database name to create.


Index: monetdb.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/monetdb.mx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- monetdb.mx  29 Aug 2007 05:45:17 -0000      1.14
+++ monetdb.mx  29 Aug 2007 06:47:58 -0000      1.15
@@ -449,9 +449,13 @@
                int maintenance = 0;
 
                if (strcmp(argv[1], "-m") == 0) {
+                       if (argc == 2) {
+                               command_help(2, &argv[-1]);
+                               exit(1);
+                       }
                        maintenance = 1;
                        dbname = argv[2];
-               } else if ( argc==3 && strcmp(argv[2], "-m") == 0) {
+               } else if (argc == 3 && strcmp(argv[2], "-m") == 0) {
                        maintenance = 1;
                        dbname = argv[1];
                } else {


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to