[Zope-CVS] CVS: Packages/SpreadLog - server.py:1.2

Jeremy Hylton jeremy@zope.com
Mon, 8 Oct 2001 21:55:49 -0400


Update of /cvs-repository/Packages/SpreadLog
In directory cvs.zope.org:/tmp/cvs-serv24473

Modified Files:
	server.py 
Log Message:
get argument counts right


=== Packages/SpreadLog/server.py 1.1 => 1.2 ===
         
     spread_name = sys.argv[1]
-    if len(sys.argv) == 2:
+    if len(sys.argv) == 3:
         log_path = sys.argv[2]
         log_file = open(log_path, 'a', 1)
         main(spread_name, log_file)
-    elif len(sys.argv) == 3:
+    elif len(sys.argv) == 4:
         log_path = sys.argv[2]
         log_file = open(log_path, 'a', 1)
         group = sys.argv[3]