[Zope3-checkins] CVS: Zope3/src/zope/fssync - main.py:1.30

Fred L. Drake, Jr. fred at zope.com
Tue Aug 12 13:47:26 EDT 2003


Update of /cvs-repository/Zope3/src/zope/fssync
In directory cvs.zope.org:/tmp/cvs-serv23996

Modified Files:
	main.py 
Log Message:
- pass the right help text to the command-line handler
- don't mask SystemExit


=== Zope3/src/zope/fssync/main.py 1.29 => 1.30 ===
--- Zope3/src/zope/fssync/main.py:1.29	Mon Aug 11 18:02:09 2003
+++ Zope3/src/zope/fssync/main.py	Tue Aug 12 12:47:21 2003
@@ -66,7 +66,7 @@
     2 for command line syntax errors
     1 or other for later errors
     """
-    cmd = Command()
+    cmd = Command(usage=__doc__)
     for func, aliases, short, long in command_table:
         cmd.addCommand(func.__name__, func, short, long, aliases)
 
@@ -82,6 +82,9 @@
     except Error, msg:
         print >>sys.stderr, msg
         return 1
+
+    except SystemExit:
+        raise
 
     else:
         return None




More information about the Zope3-Checkins mailing list