[Zodb-checkins] CVS: StandaloneZODB/ZEO - start.py:1.29.2.3

Jeremy Hylton jeremy@zope.com
Thu, 4 Apr 2002 16:18:15 -0500


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv15627/ZEO

Modified Files:
      Tag: zeo-1_0-debug-branch
	start.py 
Log Message:
If getopt fails, print usage.




=== StandaloneZODB/ZEO/start.py 1.29.2.2 => 1.29.2.3 ===
                            )
 
-    opts, args = getopt.getopt(args, 'p:Ddh:U:sS:u:')
+    fs = os.path.join(var, 'Data.fs')
 
-    fs=os.path.join(var, 'Data.fs')
-
-    usage="""%s [options] [filename]
+    usage = """%s [options] [filename]
 
     where options are:
 
@@ -120,6 +118,13 @@
 
     if no file name is specified, then %s is used.
     """ % (me, fs)
+
+    try:
+        opts, args = getopt.getopt(args, 'p:Ddh:U:sS:u:')
+    except getopt.error, err:
+        print err
+        print usage
+        sys.exit(1)
 
     port=None
     debug=detailed=0